wupengfei 2 年之前
父节点
当前提交
6ccdab43c2

+ 2 - 1
.idea/workspace.xml

@@ -4,6 +4,7 @@
     <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/operate/controller/Demand.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/controller/Demand.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/operate/controller/PlatformDemand.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/controller/PlatformDemand.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -202,7 +203,7 @@
       <workItem from="1670547445908" duration="12147000" />
       <workItem from="1670633686675" duration="15717000" />
       <workItem from="1670719843429" duration="8446000" />
-      <workItem from="1670807412269" duration="6690000" />
+      <workItem from="1670807412269" duration="6869000" />
     </task>
     <servers />
   </component>

+ 0 - 5
application/operate/controller/Demand.php

@@ -80,11 +80,6 @@ class Demand extends Controller
         {
             $user_demand = Db::name('user_demand')->find($data['id']);
            // if($user_demand['status'] != 0) $this->error('不能重复审核');
-            if(!empty($data['phone'])) {
-                $user_id = User::where('phone|email',$data['phone'])->value('id');
-                if(!$user_id) $this->error('账号未注册');
-                $data['user_id'] = $user_id;
-            }
             if($data['status'] > 0 )   UserMessage::sendUserMessage($data['user_id'],'demand',2,$data['status']-1,0,$data['id']);
         }
 

+ 3 - 3
application/operate/controller/PlatformDemand.php

@@ -120,12 +120,12 @@ class PlatformDemand extends Controller
         if($this->request->isGet() && $this->request->action() == 'edit') $this->user_info  = Db::name('store_member')->find($data['user_id']);
         if($this->request->isPost())
         {
-            if(!empty($post['phone'])) {
-                $user_id = User::where('phone|email',$post['phone'])->value('id');
+            if(!empty($data['phone'])) {
+                $user_id = User::where('phone|email',$data['phone'])->value('id');
                 if(!$user_id) $this->error('该账号未注册');
                 $data['user_id'] =  $user_id;
             }else{
-                $data['user_id'] = '';
+                $data['user_id'] = 0;
             }
         }