cqp 4 mesiacov pred
rodič
commit
7c83f347cc
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      app/Service/DeviceService.php

+ 2 - 2
app/Service/DeviceService.php

@@ -233,13 +233,13 @@ class DeviceService extends Service
 
         if($is_add){
             $bool = Device::where('code',$data['code'])
-                ->where('crt_id', $user['id'])
+//                ->where('crt_id', $user['id'])
                 ->where('del_time',0)
                 ->exists();
         }else{
             if(empty($data['id'])) return [false,'ID不能为空'];
             $bool = Device::where('code',$data['code'])
-                ->where('crt_id', $user['id'])
+//                ->where('crt_id', $user['id'])
                 ->where('id','<>',$data['id'])
                 ->where('del_time',0)
                 ->exists();