JcController.php 782 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace hd\controllers;
  3. use bizHd\wx\classes\WxOpenClass;
  4. use common\components\dict;
  5. use common\components\miniUtil;
  6. use common\components\util;
  7. use Yii;
  8. class JcController extends PublicController
  9. {
  10. public function actionList()
  11. {
  12. $arr = [
  13. ['title' => '快速了解采购流程', 'id' => 1000, 'url' => 'cg.mp4'],
  14. ];
  15. //零交会
  16. $merchant = WxOpenClass::getWxInfo();
  17. $page = 'admin/ljh/info';
  18. $ptStyle = dict::getDict('ptStyle', 'hd');
  19. $scene = "";
  20. $imgUrl = miniUtil::generateUnlimitedMiniCode($merchant, $page, $scene, $ptStyle);
  21. $apiHost = Yii::$app->params['hdImgHost'];
  22. $url = $apiHost . $imgUrl;
  23. util::success(['list' => $arr, 'url' => $url]);
  24. }
  25. }