Explorar o código

fix:export2Type

Xu·LinPeng hai 4 meses
pai
achega
4a38058bfb

+ 4 - 4
Modules/Camera/Http/Controllers/Api/CameraApiController.php

@@ -3470,16 +3470,16 @@ class CameraApiController extends BaseController
 
         if(isset($params['mark'])){
             $mark = $params['mark'];
-            if ($mark === 0){
+            if ($mark == 0){
                 foreach ($type_list as $item) {
-                    if ($item["area"] === "宁东片区") {
+                    if ($item["area"] == "宁东片区") {
                         $result_list[] = $item;
                     }
                 }
                 $result['type_list'] = $result_list;
-            }elseif ($mark === 1){
+            }elseif ($mark == 1){
                 foreach ($type_list as $item) {
-                    if ($item["area"] === "太西片区") {
+                    if ($item["area"] == "太西片区") {
                         $result_list[] = $item;
                     }
                 }