소스 검색

下载收款码

shish 11 달 전
부모
커밋
0e33c98b31
1개의 변경된 파일11개의 추가작업 그리고 1개의 파일을 삭제
  1. 11 1
      app-hd/controllers/ShopController.php

+ 11 - 1
app-hd/controllers/ShopController.php

@@ -188,7 +188,7 @@ class ShopController extends BaseController
         util::success($res);
     }
 
-    //下载微信和支付宝收款码 ssh 2020.2.29
+    //网页端使用,下载微信和支付宝收款码 ssh 20250821
     public function actionGatheringCode()
     {
         $id = Yii::$app->request->get('id', 0);
@@ -211,6 +211,16 @@ class ShopController extends BaseController
         fclose($file);
     }
 
+    //小程序端使用,下载收款码 ssh 20250821
+    public function actionMiniGatheringCode()
+    {
+        $shop = $this->shop;
+        $shopId = $shop->id;
+        ShopClass::valid($shop->attributes, $this->sjId);
+        $imgUrl = ShopClass::generateGatheringCode($this->sjId, $shopId);
+        util::success(['imgUrl' => $imgUrl]);
+    }
+
     //获取二维码
     public function actionGetGatheringCodeUrl()
     {