Commit bc2d5c695463ad2ca0b63d2dc2ac181fcda49021
1 parent
471716d8
fix:修改昵称头像
Showing
1 changed file
with
2 additions
and
2 deletions
pages/user/userinfo/userinfo.js
@@ -648,10 +648,10 @@ Page({ | @@ -648,10 +648,10 @@ Page({ | ||
648 | 648 | ||
649 | }); | 649 | }); |
650 | }).then((userInfo) => { | 650 | }).then((userInfo) => { |
651 | - getApp().request.get("/api/weshop/users/update", { | 651 | + getApp().request.put("/api/weshop/users/update", { |
652 | data: { | 652 | data: { |
653 | storeId: r.stoid, | 653 | storeId: r.stoid, |
654 | - userId: getApp().globalData.user_id, | 654 | + user_id: getApp().globalData.user_id, |
655 | nickname: userInfo.nickName, | 655 | nickname: userInfo.nickName, |
656 | head_pic: userInfo.avatarUrl | 656 | head_pic: userInfo.avatarUrl |
657 | 657 |