wupengfei 1 year ago
parent
commit
a37cabc125
2 changed files with 10 additions and 9 deletions
  1. 1 4
      .idea/workspace.xml
  2. 9 5
      application/operate/controller/ActivityQrcode.php

+ 1 - 4
.idea/workspace.xml

@@ -3,10 +3,7 @@
   <component name="ChangeListManager">
     <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/common.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/common.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/operate/controller/ActivityQrcode.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/controller/ActivityQrcode.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/operate/view/activity_qrcode/form.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/view/activity_qrcode/form.html" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/operate/view/activity_qrcode/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/view/activity_qrcode/index.html" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -378,7 +375,7 @@
       <workItem from="1689581505379" duration="6890000" />
       <workItem from="1689641487273" duration="19876000" />
       <workItem from="1689728218007" duration="5405000" />
-      <workItem from="1689813742376" duration="8548000" />
+      <workItem from="1689813742376" duration="8583000" />
     </task>
     <servers />
   </component>

+ 9 - 5
application/operate/controller/ActivityQrcode.php

@@ -83,11 +83,15 @@ class ActivityQrcode extends Controller
 
     protected function _form_filter(&$data)
     {
-        $phone = input('phone');
-        $user_id = User::where('phone|email',$phone)->value('id');
-        if(!$user_id)$this->error('用户不存在');
-        $data['user_id'] = $user_id;
-        $data['qrcode'] = create_qrcode($data['act_id'],$user_id,$module = 'activity');
+        if($this->request->isPost())
+        {
+            $phone = input('phone');
+            $user_id = User::where('phone|email',$phone)->value('id');
+            if(!$user_id)$this->error('用户不存在');
+            $data['user_id'] = $user_id;
+            $data['qrcode'] = create_qrcode($data['act_id'],$user_id,$module = 'activity');
+        }
+
     }
 
 }