Authored by 郝肖肖

'地址管理代码检查'

'use strict';
const _ = require('lodash');
// doc: http://git.yoho.cn/yoho-documents/api-interfaces/blob/master/个人中心/地址管理.md';
const _ = require('lodash');
class AddressModel extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx);
... ...
... ... @@ -131,7 +131,7 @@ module.exports = class extends global.yoho.BaseModel {
return {
address: camelCase(params.id ? editAddress : selfAddress),
addressList: camelCase(_.get(result, '[1].data', [])),
navTitle: params.id ? '编辑地址': '添加地址'
navTitle: params.id ? '编辑地址' : '添加地址'
};
});
}
... ...