| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace hd\controllers;
- use bizHd\wx\classes\WxOpenClass;
- use common\components\dict;
- use common\components\miniUtil;
- use common\components\util;
- use Yii;
- class JcController extends PublicController
- {
- public function actionList()
- {
- $arr = [
- ['title' => '快速了解采购流程', 'id' => 1000, 'url' => 'cg.mp4'],
- ];
- //零交会
- $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;
- util::success(['list' => $arr, 'url' => $url]);
- }
- }
|