wupengfei 2 years ago
parent
commit
676bdc660b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      .idea/workspace.xml
  2. 1 1
      application/user/controller/Member.php

+ 1 - 1
.idea/workspace.xml

@@ -284,7 +284,7 @@
       <workItem from="1680569641620" duration="25067000" />
       <workItem from="1680742166229" duration="18923000" />
       <workItem from="1680829083542" duration="22729000" />
-      <workItem from="1680915385051" duration="12435000" />
+      <workItem from="1680915385051" duration="12517000" />
     </task>
     <servers />
   </component>

+ 1 - 1
application/user/controller/Member.php

@@ -267,7 +267,7 @@ class Member extends Controller
             }
             $data['label'] = '|'.implode('|',$select_label).'|';
 
-            if(!empty($data['bind_phone'])) {
+            if(isset($data['bind_phone'])) {
                 $bind_id = User::where('phone',$data['bind_phone'])->value('id');
                 if(!$bind_id) $this->error('该用户未注册');
                 $check_bind = User::where(['bind_id'=>$bind_id])->value('id');