|
|
@@ -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();
|