|
|
@@ -42,8 +42,7 @@ class WxOpenController extends PublicController
|
|
|
xhWxOpenService::updateById($id, $oData);
|
|
|
$url = Yii::$app->params['wHost'] . '/wx-open-callback/' . $merchantId;
|
|
|
$authType = Yii::$app->request->get('authType', 3);
|
|
|
- //echo "<a href='https://mp.weixin.qq.com/cgi-bin/componentloginpage?component_appid={$appId}&pre_auth_code={$pre}&redirect_uri={$url}&auth_type={$authType}'>授权</a>";
|
|
|
- echo "<a href='https://mp.weixin.qq.com/cgi-bin/componentloginpage?component_appid={$appId}&pre_auth_code={$pre}&redirect_uri={$url}'>授权</a>";
|
|
|
+ echo "<a href='https://mp.weixin.qq.com/cgi-bin/componentloginpage?component_appid={$appId}&pre_auth_code={$pre}&redirect_uri={$url}&auth_type={$authType}'>授权</a>";
|
|
|
}
|
|
|
|
|
|
public function actionCheckMerchantName()
|