lizhen_gitee пре 8 месеци
родитељ
комит
946416fc09
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      application/company/controller/Usercompany.php

+ 1 - 1
application/company/controller/Usercompany.php

@@ -148,7 +148,7 @@ class Usercompany extends Apic
         }
 
         //检查用户
-        $find = Db::name('user')->where('mobile',$mobile)->where('id','!=',$info['user_id'])->find();
+        $find = Db::name('user')->where('mobile',$mobile)->where('id','NEQ',$info['user_id'])->find();
         if($find){
             $this->error('该手机号已被注册为客户');
         }