|
|
@@ -233,9 +233,9 @@ class WxOpenController extends PublicController
|
|
|
}
|
|
|
|
|
|
//开放平台设置相关操作 shish 2020.1.18
|
|
|
- //供货商使用 https://api.pt.hzghd.com/wx-open/bind-open?isOpen=2&actId=3
|
|
|
- //花店使用 https://api.pt.huaml.com/wx-open/bind-open?isOpen=1&actId=3
|
|
|
- //商城使用 https://api.pt.theflorist.cn/wx-open/bind-open?isOpen=1&actId=3
|
|
|
+ //供货商使用 https://api.pt.hzghd.com/wx-open/bind-open?actId=3
|
|
|
+ //花店使用 https://api.pt.huaml.com/wx-open/bind-open?actId=3
|
|
|
+ //商城使用 https://api.pt.theflorist.cn/wx-open/bind-open?actId=3
|
|
|
public function actionBindOpen()
|
|
|
{
|
|
|
$host = Yii::$app->request->getHostInfo();
|
|
|
@@ -243,10 +243,16 @@ class WxOpenController extends PublicController
|
|
|
//花店
|
|
|
Yii::$app->params['ptStyle'] = 1;
|
|
|
$isOpen = 1;
|
|
|
- } else {
|
|
|
+ } elseif (strpos($host, 'theflorist.cn') !== false) {
|
|
|
+ //商城
|
|
|
+ Yii::$app->params['ptStyle'] = 3;
|
|
|
+ $isOpen = 3;
|
|
|
+ } elseif (strpos($host, 'hzghd.com') !== false || strpos($host, 'huahb.cn') !== false) {
|
|
|
//供货商
|
|
|
Yii::$app->params['ptStyle'] = 2;
|
|
|
$isOpen = 2;
|
|
|
+ } else {
|
|
|
+ util::stop('域名无效');
|
|
|
}
|
|
|
$merchantId = 0;
|
|
|
if ($isOpen == 0) {
|