@@ -40,8 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | if (isset($arr['status']) && $type == 2) { |
42 | 42 | $ret=$arr; |
43 | - } |
|
44 | - else { |
|
43 | + } else { |
|
45 | 44 | $ret['status']=$type; |
46 | 45 | $ret['data']=$arr; |
47 | 46 | } |
@@ -323,8 +322,7 @@ discard block |
||
323 | 322 | if ($filters) { |
324 | 323 | if (is_string($filters)) { |
325 | 324 | $filters=explode(',', $filters); |
326 | - } |
|
327 | - else if (is_array($filters)) { |
|
325 | + } else if (is_array($filters)) { |
|
328 | 326 | foreach ($filters as $filter) { |
329 | 327 | $data=array_map_recursive($filter, $data); // 参数过滤 |
330 | 328 | } |