|
|
@@ -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 . "' />";
|
|
|
+ }
|
|
|
+
|
|
|
}
|