Kaynağa Gözat

编辑客户资料

lizhen_gitee 8 ay önce
ebeveyn
işleme
946416fc09

+ 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('该手机号已被注册为客户');
         }