Authored by yyq

address id

... ... @@ -90,7 +90,7 @@ module.exports = class extends global.yoho.BaseModel {
}
setDefaultAddress(uid, id) {
id = crypto.decrypt('', `${id}`);
id = parseInt(crypto.decrypt('', `${id}`), 10);
return new AddressApi(this.ctx).setDefaultAddressAsync(uid, id);
}
... ...