wupengfei 1 year ago
parent
commit
e5e30b3a8c

+ 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/common.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/common.php" 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" />
@@ -376,7 +377,7 @@
       <workItem from="1689641487273" duration="19876000" />
       <workItem from="1689728218007" duration="5405000" />
       <workItem from="1689813742376" duration="13449000" />
-      <workItem from="1689900489647" duration="4895000" />
+      <workItem from="1689900489647" duration="5661000" />
     </task>
     <servers />
   </component>

+ 1 - 1
application/common.php

@@ -412,7 +412,7 @@ function dispose_recommend($list,$needle= 'is_recommend')
 function create_qrcode($id,$user_id,$module = 'activity')
 {
     $qrCode= new \Endroid\QrCode\QrCode();
-    $content  = "https://ceshi.gyxqcdz.com/dist/#/activity-detail?id=1&tg_".$id.'_'.$user_id;
+    $content  = 'https://'.$_SERVER['HTTP_HOST']."/dist/#/activity-detail?id=1&tg_".$id.'_'.$user_id;
     $qrCode->setText($content);
     $qrCode->setSize(200);
     $dir = dirname(realpath(dirname($_SERVER['SCRIPT_FILENAME']))) . '/public/static/'.$module;

+ 1 - 1
application/operate/view/activity_qrcode/index.html

@@ -39,7 +39,7 @@
 <script>
     function btn_confirm(msg,fun,id) {
         layer.confirm('请确定是否'+msg, {btn: ['确定', '取消'], title: "提示"}, function () {
-            var url = "/operate/cover/"+fun;
+            var url = "/operate/activity_qrcode/"+fun;
             layer.closeAll();
             $.ajax({
                 type: "post",