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

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

@@ -41,8 +41,8 @@ class WxOpenController extends PublicController
 		//设置预授码过期,让下个用户可以获取新的预授码
 		xhWxOpenService::updateById($id, $oData);
 		$url = Yii::$app->params['wHost'] . '/wx-open-callback/' . $merchantId;
-		$authType = Yii::$app->request->get('authType', 1);
-		echo "<a href='https://mp.weixin.qq.com/cgi-bin/componentloginpage?component_appid={$appId}&pre_auth_code={$pre}&auth_type={$authType}&redirect_uri={$url}'>授权</a>";
+		$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>";
 	}
 
 	public function actionCheckMerchantName()