Browse Source

feat(KIP-7159): 获取openid

John-Hong 2 years ago
parent
commit
b78db28b90
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/login.js

+ 1 - 1
src/utils/login.js

@@ -127,7 +127,7 @@ export function logout() {
  }>
  */
 export function WxJsOpenId(param) {
-  return request.get(`/oauth/v1/wx/config/openId`, param);
+  return request.post(`/oauth/v1/wx/config/openId`, param);
 }
 // 微信公众号H5获取用户openId - 需要登录
 // export function WxJsOpenId(param: { code: string }, config?:RequestConfig ): Promise<{