wupengfei 2 年之前
父节点
当前提交
e06f8439b7
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 2
      .idea/workspace.xml
  2. 2 0
      application/user/controller/Member.php

+ 1 - 2
.idea/workspace.xml

@@ -4,7 +4,6 @@
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/user/controller/Member.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/user/controller/Member.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/user/view/member/form.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/user/view/member/form.html" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -270,7 +269,7 @@
       <workItem from="1679359715116" duration="25702000" />
       <workItem from="1679532313623" duration="31448000" />
       <workItem from="1679619041819" duration="29965000" />
-      <workItem from="1679706054685" duration="16280000" />
+      <workItem from="1679706054685" duration="16369000" />
     </task>
     <servers />
   </component>

+ 2 - 0
application/user/controller/Member.php

@@ -264,6 +264,8 @@ class Member extends Controller
             if($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');
+                if($check_bind) $this->error('该用户被绑定');
                 $data['bind_id'] = $bind_id;
             }
         }