File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
api/modules/v1/controllers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ public function actionWechatMp()
123123
124124 $ user = $ model ->getUser ();
125125 $ unionid = $ user ['unionId ' ] ?? '' ;
126- $ auth = Yii::$ app ->services ->memberAuth ->findOauthClient (Auth::CLIENT_WECHAT_MP , $ user [ ' openId ' ] );
126+ $ auth = Yii::$ app ->services ->memberAuth ->findOauthClient (Auth::CLIENT_WECHAT_MP , $ model -> getOpenid () );
127127 if ($ auth && $ auth ->member ) {
128128 $ user_info = $ this ->getData ($ auth , AccessTokenGroupEnum::WECHAT_MP );
129129 unset($ user_info ['watermark ' ]);
@@ -155,7 +155,7 @@ public function actionWechatMp()
155155 'unionid ' => $ unionid ,
156156 'member_id ' => $ member ['id ' ],
157157 'oauth_client ' => Auth::CLIENT_WECHAT_MP ,
158- 'oauth_client_user_id ' => $ user [ ' openId ' ] ,
158+ 'oauth_client_user_id ' => $ model -> getOpenid () ,
159159 'gender ' => $ user ['gender ' ],
160160 'nickname ' => $ user ['nickName ' ],
161161 'head_portrait ' => $ member ['head_portrait ' ],
You can’t perform that action at this time.
0 commit comments