shish пре 3 година
родитељ
комит
eb31ab3b99
1 измењених фајлова са 16 додато и 0 уклоњено
  1. 16 0
      app-pt/controllers/LjhController.php

+ 16 - 0
app-pt/controllers/LjhController.php

@@ -3,7 +3,10 @@
 namespace pt\controllers;
 
 use bizHd\ljh\classes\LjhApplyClass;
+use common\components\dict;
 use common\components\util;
+use common\components\miniUtil;
+use bizHd\wx\classes\WxOpenClass;
 use Yii;
 
 
@@ -48,4 +51,17 @@ class LjhController extends BaseController
         echo '<style>td,th{border:1px solid #CCCCCC;}</style>';
     }
 
+    //小程序码 ssh 20230305
+    public function actionMiniCode()
+    {
+        $merchant = WxOpenClass::getWxInfo();
+        $page = 'admin/ljh/info';
+        $ptStyle = dict::getDict('ptStyle', 'hd');
+        $scene = "";
+        $imgUrl = miniUtil::generateUnlimitedMiniCode($merchant, $page, $scene, $ptStyle);
+        $apiHost = Yii::$app->params['hdImgHost'];
+        $url = $apiHost . $imgUrl;
+        echo "<img src='" . $url . "' />";
+    }
+
 }