...
|
...
|
@@ -60,7 +60,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
}
|
|
|
|
|
|
delAddressById(uid, id) {
|
|
|
id = crypto.decrypt('', `${id}`);
|
|
|
id = parseInt(crypto.decrypt('', `${id}`), 10);
|
|
|
return new AddressApi(this.ctx).delAddressAsync(uid, id);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -68,7 +68,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
let addressApiModel = new AddressApi(this.ctx);
|
|
|
|
|
|
if (info.id) {
|
|
|
let id = crypto.decrypt('', `${info.id}`);
|
|
|
let id = parseInt(crypto.decrypt('', `${info.id}`), 10);
|
|
|
|
|
|
return addressApiModel.updateAddressAsync(uid, id, info.consignee, info.areaCode, info.address,
|
|
|
info.mobile, info.phone, info.zipCode, info.email);
|
...
|
...
|
|