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

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

@@ -42,9 +42,9 @@ 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}&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}&auth_type={$authType}&redirect_uri={$url}'>授权</a>";
 	}
-	
+
 	public function actionCheckMerchantName()
 	{
 		$get = Yii::$app->request->get();
@@ -131,9 +131,9 @@ class WxOpenController extends PublicController
 			Yii::info('小程序信息更新成功:' . json_encode($authorize_info));
 			util::stop("小程序信息更新成功");
 		}
-
+		
 		$merchant = xhMerchantService::getByAppId($authorizeAppId);
-
+		
 		if (empty($merchant)) {
 			util::stop('这个商家没有生成过基本信息。appid:' . $authorizeAppId);
 		}