Explorar o código

设备管理接口

任敬轩 hai 3 meses
pai
achega
dd584e4887
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      Modules/Admin/Http/Controllers/Api/ApiController.php

+ 5 - 5
Modules/Admin/Http/Controllers/Api/ApiController.php

@@ -539,31 +539,31 @@ class ApiController extends BaseController
                     $result['data'] = 1;
                 }
             }
-            if($type == 'dxfzr' && $staff_num == $sb[0]->dxfzr){
+            if($type == 'dxfzr'){
                 $people = DB::connection('mysql_fwe10')->table('uf_zhxx_sbgl_rygl')->where('id',$sb[0]->dxfzr)->get();
                 if($people[0]->gh == $staff_num){
                     $result['data'] = 1;
                 }
             }
-            if($type == 'jxfzr' && $staff_num == $sb[0]->jxfzr){
+            if($type == 'jxfzr'){
                 $people = DB::connection('mysql_fwe10')->table('uf_zhxx_sbgl_rygl')->where('id',$sb[0]->jxfzr)->get();
                 if($people[0]->gh == $staff_num){
                     $result['data'] = 1;
                 }
             }
-            if($type == 'jxysfzr' && $staff_num == $sb[0]->jxysfzr){
+            if($type == 'jxysfzr'){
                 $people = DB::connection('mysql_fwe10')->table('uf_zhxx_sbgl_rygl')->where('id',$sb[0]->jxysfzr)->get();
                 if($people[0]->gh == $staff_num){
                     $result['data'] = 1;
                 }
             }
-            if($type == 'dbffzr' && $staff_num == $sb[0]->dbffzr){
+            if($type == 'dbffzr'){
                 $people = DB::connection('mysql_fwe10')->table('uf_zhxx_sbgl_rygl')->where('id',$sb[0]->dbffzr)->get();
                 if($people[0]->gh == $staff_num){
                     $result['data'] = 1;
                 }
             }
-            if($type == 'bffzr' && $staff_num == $sb[0]->bffzr){
+            if($type == 'bffzr'){
                 $people = DB::connection('mysql_fwe10')->table('uf_zhxx_sbgl_rygl')->where('id',$sb[0]->bffzr)->get();
                 if($people[0]->gh == $staff_num){
                     $result['data'] = 1;