|
|
@@ -4,6 +4,10 @@ namespace hd\controllers;
|
|
|
|
|
|
use biz\sj\classes\SjClass;
|
|
|
use bizHd\saas\services\ApplyService;
|
|
|
+use bizHd\wx\classes\WxOpenClass;
|
|
|
+use common\components\dict;
|
|
|
+use common\components\imgUtil;
|
|
|
+use common\components\miniUtil;
|
|
|
use common\components\stringUtil;
|
|
|
use Yii;
|
|
|
use common\components\util;
|
|
|
@@ -18,19 +22,31 @@ class ApplyController extends BaseController
|
|
|
//邀请花店海报 shish 20210610
|
|
|
public function actionInviteHdPoster()
|
|
|
{
|
|
|
- $data = [
|
|
|
- 'imgUrl' => "https://img.huaml.com/ghs/home/deserve.png",
|
|
|
+ $merchant = WxOpenClass::getWxInfo();
|
|
|
+ $page = 'pagesClient/official/index';
|
|
|
+ $ptStyle = dict::getDict('ptStyle', 'hd');
|
|
|
+ $scene = 'hdShopAdminId=' . $this->shopAdminId;
|
|
|
+ $imgUrl = miniUtil::generateUnlimitedMiniCode($merchant, $page, $scene, $ptStyle);
|
|
|
+ $url = imgUtil::groupImg($imgUrl);
|
|
|
+ $respond = [
|
|
|
+ 'imgUrl' => $url,
|
|
|
];
|
|
|
- util::success($data);
|
|
|
+ util::success($respond);
|
|
|
}
|
|
|
|
|
|
//邀请花店海报 shish 20210610
|
|
|
public function actionInviteGhsPoster()
|
|
|
{
|
|
|
- $data = [
|
|
|
- 'imgUrl' => "https://img.huaml.com/ghs/home/deserve.png",
|
|
|
+ $merchant = WxOpenClass::getGhsWxInfo();
|
|
|
+ $page = 'pagesClient/official/index';
|
|
|
+ $ptStyle = dict::getDict('ptStyle', 'ghs');
|
|
|
+ $scene = 'hdShopAdminId=' . $this->shopAdminId;
|
|
|
+ $imgUrl = miniUtil::generateUnlimitedMiniCode($merchant, $page, $scene, $ptStyle);
|
|
|
+ $url = imgUtil::groupImg($imgUrl);
|
|
|
+ $respond = [
|
|
|
+ 'imgUrl' => $url,
|
|
|
];
|
|
|
- util::success($data);
|
|
|
+ util::success($respond);
|
|
|
}
|
|
|
|
|
|
//我的代理 ssh 2019.12.26
|