@@ -161,7 +161,7 @@ |
||
161 | 161 | $result['status_message'] = self::toResponse($response); |
162 | 162 | $result['data'] = []; |
163 | 163 | } else { |
164 | - header('HTTP/1.1 '. 200); |
|
164 | + header('HTTP/1.1 '.200); |
|
165 | 165 | $result['status'] = 200; |
166 | 166 | $result['status_message'] = 'Success'; |
167 | 167 | $result['data'] = self::superEncode($response); |
@@ -127,9 +127,15 @@ |
||
127 | 127 | { |
128 | 128 | $currentMonth = date('m'); |
129 | 129 | |
130 | - if ($currentMonth >= '01' && $currentMonth < '04') return 'winter'; |
|
131 | - if ($currentMonth >= '04' && $currentMonth < '07') return 'spring'; |
|
132 | - if ($currentMonth >= '07' && $currentMonth < '10') return 'summer'; |
|
130 | + if ($currentMonth >= '01' && $currentMonth < '04') { |
|
131 | + return 'winter'; |
|
132 | + } |
|
133 | + if ($currentMonth >= '04' && $currentMonth < '07') { |
|
134 | + return 'spring'; |
|
135 | + } |
|
136 | + if ($currentMonth >= '07' && $currentMonth < '10') { |
|
137 | + return 'summer'; |
|
138 | + } |
|
133 | 139 | return 'autumn'; |
134 | 140 | } |
135 | 141 |