shish 6 лет назад
Родитель
Сommit
86f898e485
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      app/www/controllers/WxOpenController.php

+ 1 - 2
app/www/controllers/WxOpenController.php

@@ -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()