|
@@ -19,7 +19,7 @@ class CommonWeixin
|
|
|
}
|
|
|
|
|
|
public static function getAccessInfo($code,$appId =null,$secret = null) {
|
|
|
- $wxConfig = Yii::app()->params['wxConfig'];
|
|
|
+ $wxConfig = Yii::app()->params['wxConfig'];
|
|
|
$accessTokenURI = 'https://api.weixin.qq.com/sns/oauth2/access_token?appid=' . ($appId?$appId:$wxConfig['appId']) . '&secret=' . ($secret?$secret:$wxConfig['appSecret']) . '&code=' . $code . '&grant_type=authorization_code';
|
|
|
$res = json_decode(self::httpGet($accessTokenURI), true);
|
|
|
|