|
|
@@ -31,12 +31,13 @@ class WxOpenController extends PublicController
|
|
|
if ($id == 'hd') {
|
|
|
$open = \biz\wx\classes\WxOpenClass::getByCondition(['style' => \biz\wx\classes\WxOpenClass::OPEN_STYLE_HD]);
|
|
|
$prefix = Yii::$app->params['hdPtHost'];
|
|
|
- }
|
|
|
- if ($id == 'ghs') {
|
|
|
+ } elseif ($id == 'ghs') {
|
|
|
$open = \biz\wx\classes\WxOpenClass::getByCondition(['style' => \biz\wx\classes\WxOpenClass::OPEN_STYLE_GHS]);
|
|
|
$prefix = Yii::$app->params['ghsPtHost'];
|
|
|
- }
|
|
|
- if (empty($open)) {
|
|
|
+ } elseif ($id == 'mall') {
|
|
|
+ $open = \biz\wx\classes\WxOpenClass::getByCondition(['style' => \biz\wx\classes\WxOpenClass::OPEN_STYLE_MALL]);
|
|
|
+ $prefix = Yii::$app->params['mallPtHost'];
|
|
|
+ } else {
|
|
|
util::stop('没有找到平台信息');
|
|
|
}
|
|
|
$url = $prefix . '/wx-open-callback/' . $id;
|