Commit 7b5fffd6 authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-wx,litemall-wx-apidb]: 下单时没有送货地址,添加新地址成功,但是没有显示。

parent e265a754
......@@ -153,7 +153,7 @@ public class WxAddressController {
address.setUserId(userId);
addressService.update(address);
}
return ResponseUtil.ok();
return ResponseUtil.ok(address.getId());
}
/**
......
......@@ -298,6 +298,11 @@ Page({
isDefault: address.isDefault,
}, 'POST').then(function (res) {
if (res.errno === 0) {
try {
wx.setStorageSync('addressId', res.data);
} catch (e) {
}
wx.navigateBack();
}
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment