six_007
This commit is contained in:
@@ -71,7 +71,6 @@ class 接收微信的code回调ViewSets(ViewSet):
|
||||
openid = pydash.get(obj=postData, path="openid")
|
||||
scope = pydash.get(obj=postData, path="scope")
|
||||
unionid = pydash.get(obj=postData, path="unionid")
|
||||
print(postData, "00000000000000000000")
|
||||
return postData
|
||||
|
||||
def get获取用户个人信息(self, code, state):
|
||||
@@ -125,7 +124,6 @@ class 接收微信的code回调ViewSets(ViewSet):
|
||||
user_info_用户信息 = self.get获取用户个人信息(code=code, state=state)
|
||||
openid = pydash.get(obj=user_info_用户信息, path="openid")
|
||||
unionid = pydash.get(obj=user_info_用户信息, path="unionid")
|
||||
print("为什么没有值了呢", openid, unionid)
|
||||
token = self.jwt_生成token(openid=openid, uniond=unionid) # 前端带着code进来,
|
||||
setData = pydash.set_(obj=user_info_用户信息, path="token", value=token)
|
||||
query_string = urlencode(setData, )
|
||||
|
||||
Reference in New Issue
Block a user