Selaa lähdekoodia

设备管理接口

任敬轩 3 kuukautta sitten
vanhempi
commit
dd584e4887
1 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  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;