|
@@ -6,11 +6,34 @@ |
|
@@ -6,11 +6,34 @@ |
6
|
'use strict';
|
6
|
'use strict';
|
7
|
const utils = '../../../utils';
|
7
|
const utils = '../../../utils';
|
8
|
const productProcess = require(`${utils}/product-process`);
|
8
|
const productProcess = require(`${utils}/product-process`);
|
|
|
9
|
+const resourcesProcess = require(`${utils}/resources-process`);
|
|
|
10
|
+const _ = require('lodash');
|
9
|
const api = global.yoho.API;
|
11
|
const api = global.yoho.API;
|
|
|
12
|
+const serviceAPI = global.yoho.ServiceAPI;
|
10
|
const logger = global.yoho.logger;
|
13
|
const logger = global.yoho.logger;
|
11
|
|
14
|
|
12
|
// const camelCase = global.yoho.camelCase;
|
15
|
// const camelCase = global.yoho.camelCase;
|
13
|
|
16
|
|
|
|
17
|
+/**
|
|
|
18
|
+ * 获取资源位数据
|
|
|
19
|
+ * @param {[string]} page
|
|
|
20
|
+ * @return {[array]}
|
|
|
21
|
+ */
|
|
|
22
|
+const getResources = (page, channel) => {
|
|
|
23
|
+ return serviceAPI.get('operations/api/v5/resource/get', {
|
|
|
24
|
+ content_code: '0876085ff46bed27f1a1eb6ee8b68987'
|
|
|
25
|
+ }, {
|
|
|
26
|
+ cache: true
|
|
|
27
|
+ }).then((result) => {
|
|
|
28
|
+ if (result && result.code === 200) {
|
|
|
29
|
+ return resourcesProcess(result.data);
|
|
|
30
|
+ } else {
|
|
|
31
|
+ logger.error('get resources data return code is not 200');
|
|
|
32
|
+ return [];
|
|
|
33
|
+ }
|
|
|
34
|
+ });
|
|
|
35
|
+};
|
|
|
36
|
+
|
14
|
|
37
|
|
15
|
// 获取分期开通状态
|
38
|
// 获取分期开通状态
|
16
|
const getStauts = (uid) => {
|
39
|
const getStauts = (uid) => {
|
|
@@ -22,7 +45,7 @@ const getStauts = (uid) => { |
|
@@ -22,7 +45,7 @@ const getStauts = (uid) => { |
22
|
alg: 'SALT_MD5',
|
45
|
alg: 'SALT_MD5',
|
23
|
code: 200,
|
46
|
code: 200,
|
24
|
data: {
|
47
|
data: {
|
25
|
- status: 0
|
48
|
+ status: 2
|
26
|
},
|
49
|
},
|
27
|
md5: '6d729d4b35f10fc73531210bd7ecff91',
|
50
|
md5: '6d729d4b35f10fc73531210bd7ecff91',
|
28
|
message: 'success'
|
51
|
message: 'success'
|
|
@@ -30,7 +53,7 @@ const getStauts = (uid) => { |
|
@@ -30,7 +53,7 @@ const getStauts = (uid) => { |
30
|
if (result && result.code === 200) {
|
53
|
if (result && result.code === 200) {
|
31
|
return result.data.status;
|
54
|
return result.data.status;
|
32
|
} else {
|
55
|
} else {
|
33
|
- logger.error('get installment open status return is not 200');
|
56
|
+ logger.error('get installment open status return code is not 200');
|
34
|
return '';
|
57
|
return '';
|
35
|
}
|
58
|
}
|
36
|
});
|
59
|
});
|
|
@@ -39,7 +62,7 @@ const getStauts = (uid) => { |
|
@@ -39,7 +62,7 @@ const getStauts = (uid) => { |
39
|
// 获取用户可用额度信息
|
62
|
// 获取用户可用额度信息
|
40
|
const getQueryCreditInfo = (uid) => {
|
63
|
const getQueryCreditInfo = (uid) => {
|
41
|
return api.get('', {
|
64
|
return api.get('', {
|
42
|
- method: 'order.queryCreditInfo',
|
65
|
+ method: 'app.order.queryCreditInfo',
|
43
|
uid: uid
|
66
|
uid: uid
|
44
|
}).then((result) => {
|
67
|
}).then((result) => {
|
45
|
result = {
|
68
|
result = {
|
|
@@ -53,10 +76,11 @@ const getQueryCreditInfo = (uid) => { |
|
@@ -53,10 +76,11 @@ const getQueryCreditInfo = (uid) => { |
53
|
md5: 'c1d725306fb09dcbf504776d276521cb',
|
76
|
md5: 'c1d725306fb09dcbf504776d276521cb',
|
54
|
message: 'ok'
|
77
|
message: 'ok'
|
55
|
};
|
78
|
};
|
|
|
79
|
+ console.log('11');
|
56
|
if (result && result.code === 200) {
|
80
|
if (result && result.code === 200) {
|
57
|
return result.data;
|
81
|
return result.data;
|
58
|
} else {
|
82
|
} else {
|
59
|
- logger.error('get user installment usable price info return is not 200');
|
83
|
+ logger.error('get user installment usable price info return code is not 200');
|
60
|
return '';
|
84
|
return '';
|
61
|
}
|
85
|
}
|
62
|
});
|
86
|
});
|
|
@@ -65,7 +89,7 @@ const getQueryCreditInfo = (uid) => { |
|
@@ -65,7 +89,7 @@ const getQueryCreditInfo = (uid) => { |
65
|
// 获取用户待还款金额
|
89
|
// 获取用户待还款金额
|
66
|
const getQueryAmtInfo = (uid) => {
|
90
|
const getQueryAmtInfo = (uid) => {
|
67
|
return api.get('', {
|
91
|
return api.get('', {
|
68
|
- method: 'order.queryAmtInfo',
|
92
|
+ method: 'app.order.queryAmtInfo',
|
69
|
uid: uid
|
93
|
uid: uid
|
70
|
}).then((result) => {
|
94
|
}).then((result) => {
|
71
|
result = {
|
95
|
result = {
|
|
@@ -84,143 +108,216 @@ const getQueryAmtInfo = (uid) => { |
|
@@ -84,143 +108,216 @@ const getQueryAmtInfo = (uid) => { |
84
|
result.data.dayAmt = result.data._7daysAmt;
|
108
|
result.data.dayAmt = result.data._7daysAmt;
|
85
|
return result.data;
|
109
|
return result.data;
|
86
|
} else {
|
110
|
} else {
|
87
|
- logger.error('get user installment repay info return is not 200');
|
111
|
+ logger.error('get user installment repay info return code is not 200');
|
88
|
return '';
|
112
|
return '';
|
89
|
}
|
113
|
}
|
90
|
});
|
114
|
});
|
91
|
};
|
115
|
};
|
92
|
|
116
|
|
93
|
-// 分期专享推荐商品
|
|
|
94
|
-const getSearchIntallment = () => {
|
|
|
95
|
- return api.post('', {
|
|
|
96
|
- method: 'app.search.instalment',
|
|
|
97
|
- limit: '50',
|
|
|
98
|
- order: 's_t_desc'
|
|
|
99
|
- }, {
|
117
|
+// 处理还款列表数据
|
|
|
118
|
+const _processAmtList = (list) => {
|
|
|
119
|
+ let formatData = [];
|
|
|
120
|
+
|
|
|
121
|
+ list = list || [];
|
|
|
122
|
+
|
|
|
123
|
+ _.forEach(list, (data) => {
|
|
|
124
|
+ if (data.terms === 1) {
|
|
|
125
|
+ data.stage = data.terms;
|
|
|
126
|
+ } else {
|
|
|
127
|
+ data.stage = data.currTerm + '/' + data.terms;
|
|
|
128
|
+ }
|
|
|
129
|
+
|
|
|
130
|
+ if (data.unExpireDays < 0) {
|
|
|
131
|
+ data.isOverdue = true;
|
|
|
132
|
+ }
|
|
|
133
|
+
|
|
|
134
|
+ data.day = data.unExpireDays;
|
|
|
135
|
+ });
|
|
|
136
|
+
|
|
|
137
|
+ return list;
|
|
|
138
|
+};
|
|
|
139
|
+
|
|
|
140
|
+// 获取用户待还列表信息 queryDays -1:逾期待还;0:全部待还;7:七日待还;30:本月待还
|
|
|
141
|
+const getQueryAmtList = (params) => {
|
|
|
142
|
+ return api.get('', _.assign({
|
|
|
143
|
+ method: 'app.order.queryAmtList',
|
|
|
144
|
+ pageSize: '20'
|
|
|
145
|
+ }, params), {
|
100
|
cache: true
|
146
|
cache: true
|
101
|
}).then((result) => {
|
147
|
}).then((result) => {
|
102
|
result = {
|
148
|
result = {
|
103
|
alg: 'SALT_MD5',
|
149
|
alg: 'SALT_MD5',
|
104
|
code: 200,
|
150
|
code: 200,
|
105
|
data: {
|
151
|
data: {
|
106
|
- product_list: [
|
152
|
+ amtList: [
|
107
|
{
|
153
|
{
|
108
|
- brand_domain: '5cm',
|
|
|
109
|
- brand_id: 4,
|
|
|
110
|
- brand_name: '5CM',
|
|
|
111
|
- cn_alphabet: '5CMPeiShi5CXTIT0600S66',
|
|
|
112
|
- default_images: 'http://img13.static.yhbimg.com/goodsimg/2016/02/21/07/026d569b2db7d9ce9339a79bcb3fe420f8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
113
|
- edit_time: 1456119592,
|
|
|
114
|
- gender: '1',
|
|
|
115
|
- goods_list: [
|
|
|
116
|
- {
|
|
|
117
|
- color_code: '333333',
|
|
|
118
|
- color_id: '2',
|
|
|
119
|
- color_name: '黑色',
|
|
|
120
|
- color_value: '',
|
|
|
121
|
- cover_1: '',
|
|
|
122
|
- cover_2: '',
|
|
|
123
|
- goods_id: '476147',
|
|
|
124
|
- images_url: 'http://img13.static.yhbimg.com/goodsimg/2016/02/21/07/026d569b2db7d9ce9339a79bcb3fe420f8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
125
|
- is_default: 'N',
|
|
|
126
|
- product_skc: '346699',
|
|
|
127
|
- status: '1'
|
|
|
128
|
- }
|
|
|
129
|
- ],
|
|
|
130
|
- is_advance: 'N',
|
|
|
131
|
- is_discount: 'N',
|
|
|
132
|
- is_limited: 'N',
|
|
|
133
|
- is_new: 'Y',
|
|
|
134
|
- is_outlets: 2,
|
|
|
135
|
- is_promotion: 104,
|
|
|
136
|
- is_soon_sold_out: 'N',
|
|
|
137
|
- is_special: 'N',
|
|
|
138
|
- market_price: 359,
|
|
|
139
|
- max_sort_id: 8,
|
|
|
140
|
- middle_sort_id: 66,
|
|
|
141
|
- product_id: 373507,
|
|
|
142
|
- product_name: '5CM 字母印花领带',
|
|
|
143
|
- product_skn: 51206745,
|
|
|
144
|
- sales_num: 0,
|
|
|
145
|
- sales_phrase: '春潮新势力',
|
|
|
146
|
- sales_price: 359,
|
|
|
147
|
- shelve_time: 1457140500,
|
|
|
148
|
- small_sort_id: 77,
|
|
|
149
|
- status: 1,
|
|
|
150
|
- stock_number: 25,
|
|
|
151
|
- storage_num: 25,
|
|
|
152
|
- tags: [
|
|
|
153
|
- 'is_new'
|
|
|
154
|
- ],
|
|
|
155
|
- vip1_price: 341.05,
|
|
|
156
|
- vip2_price: 323.1,
|
|
|
157
|
- vip3_price: 315.92,
|
|
|
158
|
- vip_discount_type: 1,
|
|
|
159
|
- vip_price: 0
|
154
|
+ billNo: 'x00001',
|
|
|
155
|
+ terms: 3,
|
|
|
156
|
+ currTerm: 1,
|
|
|
157
|
+ unExpireDays: -3,
|
|
|
158
|
+ billInfo: '三叶草运动休闲鞋',
|
|
|
159
|
+ currAmt: '845.00',
|
|
|
160
|
+ currNoFeeAmt: '840.00',
|
|
|
161
|
+ currFee: '5.00'
|
160
|
}, {
|
162
|
}, {
|
161
|
- brand_domain: '5cm',
|
|
|
162
|
- brand_id: 4,
|
|
|
163
|
- brand_name: '5CM',
|
|
|
164
|
- cn_alphabet: '5CMPeiShi5CXTIT0603S66',
|
|
|
165
|
- default_images: 'http://img12.static.yhbimg.com/goodsimg/2016/02/21/07/02d463c9f8945ad14f824e8ba35efb9555.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
166
|
- edit_time: 1456119581,
|
|
|
167
|
- gender: '1',
|
|
|
168
|
- goods_list: [
|
|
|
169
|
- {
|
|
|
170
|
- color_code: '333333',
|
|
|
171
|
- color_id: '2',
|
|
|
172
|
- color_name: '黑色',
|
|
|
173
|
- color_value: '',
|
|
|
174
|
- cover_1: '',
|
|
|
175
|
- cover_2: '',
|
|
|
176
|
- goods_id: '476153',
|
|
|
177
|
- images_url: 'http://img12.static.yhbimg.com/goodsimg/2016/02/21/07/02d463c9f8945ad14f824e8ba35efb9555.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
178
|
- is_default: 'N',
|
|
|
179
|
- product_skc: '346702',
|
|
|
180
|
- status: '1'
|
|
|
181
|
- }
|
|
|
182
|
- ],
|
|
|
183
|
- is_advance: 'N',
|
|
|
184
|
- is_discount: 'N',
|
|
|
185
|
- is_limited: 'N',
|
|
|
186
|
- is_new: 'Y',
|
|
|
187
|
- is_outlets: 2,
|
|
|
188
|
- is_promotion: 104,
|
|
|
189
|
- is_soon_sold_out: 'N',
|
|
|
190
|
- is_special: 'N',
|
|
|
191
|
- market_price: 359,
|
|
|
192
|
- max_sort_id: 8,
|
|
|
193
|
- middle_sort_id: 66,
|
|
|
194
|
- product_id: 373513,
|
|
|
195
|
- product_name: '5CM 字母印花领结',
|
|
|
196
|
- product_skn: 51206748,
|
|
|
197
|
- sales_num: 0,
|
|
|
198
|
- sales_phrase: '春潮新势力',
|
|
|
199
|
- sales_price: 359,
|
|
|
200
|
- shelve_time: 1457140500,
|
|
|
201
|
- small_sort_id: 77,
|
|
|
202
|
- status: 1,
|
|
|
203
|
- stock_number: 19,
|
|
|
204
|
- storage_num: 19,
|
|
|
205
|
- tags: [
|
|
|
206
|
- 'is_new'
|
|
|
207
|
- ],
|
|
|
208
|
- vip1_price: 341.05,
|
|
|
209
|
- vip2_price: 323.1,
|
|
|
210
|
- vip3_price: 315.92,
|
|
|
211
|
- vip_discount_type: 1,
|
|
|
212
|
- vip_price: 0
|
163
|
+ billNo: 'x00001',
|
|
|
164
|
+ terms: 3,
|
|
|
165
|
+ currTerm: 2,
|
|
|
166
|
+ unExpireDays: 10,
|
|
|
167
|
+ billInfo: '三叶草运动休闲鞋',
|
|
|
168
|
+ currAmt: '840.00',
|
|
|
169
|
+ currNoFeeAmt: '840.00',
|
|
|
170
|
+ currFee: '0.00'
|
213
|
}
|
171
|
}
|
214
|
],
|
172
|
],
|
215
|
- rec_id: '00f185af-936a-4053-97f8-1c802cb91e8b'
|
173
|
+ pageNo: 1,
|
|
|
174
|
+ pageTotal: 1,
|
|
|
175
|
+ total: 2
|
216
|
},
|
176
|
},
|
217
|
- md5: 'ace93d0f598db0bebec30234381c0cbf',
|
|
|
218
|
- message: 'Product List.'
|
177
|
+ md5: 'c1d725306fb09dcbf504776d276521cb',
|
|
|
178
|
+ message: 'ok'
|
219
|
};
|
179
|
};
|
220
|
if (result && result.code === 200) {
|
180
|
if (result && result.code === 200) {
|
|
|
181
|
+ return _processAmtList(result.data.amtList);
|
|
|
182
|
+ } else {
|
|
|
183
|
+ logger.error('get queryAmtList data return code is not 200');
|
|
|
184
|
+ return '';
|
|
|
185
|
+ }
|
|
|
186
|
+ });
|
|
|
187
|
+};
|
|
|
188
|
+
|
|
|
189
|
+// 分期专享推荐商品
|
|
|
190
|
+const getSearchIntallment = () => {
|
|
|
191
|
+ return api.post('', {
|
|
|
192
|
+ // method: 'app.search.instalment',
|
|
|
193
|
+ method: 'app.search.newProduct',
|
|
|
194
|
+ limit: '50',
|
|
|
195
|
+ order: 's_t_desc'
|
|
|
196
|
+ }, {
|
|
|
197
|
+ cache: true
|
|
|
198
|
+ }).then((result) => {
|
|
|
199
|
+ // result = {
|
|
|
200
|
+ // alg: 'SALT_MD5',
|
|
|
201
|
+ // code: 200,
|
|
|
202
|
+ // data: {
|
|
|
203
|
+ // product_list: [
|
|
|
204
|
+ // {
|
|
|
205
|
+ // brand_domain: '5cm',
|
|
|
206
|
+ // brand_id: 4,
|
|
|
207
|
+ // brand_name: '5CM',
|
|
|
208
|
+ // cn_alphabet: '5CMPeiShi5CXTIT0600S66',
|
|
|
209
|
+ // default_images: 'http://img13.static.yhbimg.com/goodsimg/2016/02/21/07/026d569b2db7d9ce9339a79bcb3fe420f8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
210
|
+ // edit_time: 1456119592,
|
|
|
211
|
+ // gender: '1',
|
|
|
212
|
+ // goods_list: [
|
|
|
213
|
+ // {
|
|
|
214
|
+ // color_code: '333333',
|
|
|
215
|
+ // color_id: '2',
|
|
|
216
|
+ // color_name: '黑色',
|
|
|
217
|
+ // color_value: '',
|
|
|
218
|
+ // cover_1: '',
|
|
|
219
|
+ // cover_2: '',
|
|
|
220
|
+ // goods_id: '476147',
|
|
|
221
|
+ // images_url: 'http://img13.static.yhbimg.com/goodsimg/2016/02/21/07/026d569b2db7d9ce9339a79bcb3fe420f8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
222
|
+ // is_default: 'N',
|
|
|
223
|
+ // product_skc: '346699',
|
|
|
224
|
+ // status: '1'
|
|
|
225
|
+ // }
|
|
|
226
|
+ // ],
|
|
|
227
|
+ // is_advance: 'N',
|
|
|
228
|
+ // is_discount: 'N',
|
|
|
229
|
+ // is_limited: 'N',
|
|
|
230
|
+ // is_new: 'Y',
|
|
|
231
|
+ // is_outlets: 2,
|
|
|
232
|
+ // is_promotion: 104,
|
|
|
233
|
+ // is_soon_sold_out: 'N',
|
|
|
234
|
+ // is_special: 'N',
|
|
|
235
|
+ // market_price: 359,
|
|
|
236
|
+ // max_sort_id: 8,
|
|
|
237
|
+ // middle_sort_id: 66,
|
|
|
238
|
+ // product_id: 373507,
|
|
|
239
|
+ // product_name: '5CM 字母印花领带',
|
|
|
240
|
+ // product_skn: 51206745,
|
|
|
241
|
+ // sales_num: 0,
|
|
|
242
|
+ // sales_phrase: '春潮新势力',
|
|
|
243
|
+ // sales_price: 359,
|
|
|
244
|
+ // shelve_time: 1457140500,
|
|
|
245
|
+ // small_sort_id: 77,
|
|
|
246
|
+ // status: 1,
|
|
|
247
|
+ // stock_number: 25,
|
|
|
248
|
+ // storage_num: 25,
|
|
|
249
|
+ // tags: [
|
|
|
250
|
+ // 'is_new'
|
|
|
251
|
+ // ],
|
|
|
252
|
+ // vip1_price: 341.05,
|
|
|
253
|
+ // vip2_price: 323.1,
|
|
|
254
|
+ // vip3_price: 315.92,
|
|
|
255
|
+ // vip_discount_type: 1,
|
|
|
256
|
+ // vip_price: 0
|
|
|
257
|
+ // }, {
|
|
|
258
|
+ // brand_domain: '5cm',
|
|
|
259
|
+ // brand_id: 4,
|
|
|
260
|
+ // brand_name: '5CM',
|
|
|
261
|
+ // cn_alphabet: '5CMPeiShi5CXTIT0603S66',
|
|
|
262
|
+ // default_images: 'http://img12.static.yhbimg.com/goodsimg/2016/02/21/07/02d463c9f8945ad14f824e8ba35efb9555.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
263
|
+ // edit_time: 1456119581,
|
|
|
264
|
+ // gender: '1',
|
|
|
265
|
+ // goods_list: [
|
|
|
266
|
+ // {
|
|
|
267
|
+ // color_code: '333333',
|
|
|
268
|
+ // color_id: '2',
|
|
|
269
|
+ // color_name: '黑色',
|
|
|
270
|
+ // color_value: '',
|
|
|
271
|
+ // cover_1: '',
|
|
|
272
|
+ // cover_2: '',
|
|
|
273
|
+ // goods_id: '476153',
|
|
|
274
|
+ // images_url: 'http://img12.static.yhbimg.com/goodsimg/2016/02/21/07/02d463c9f8945ad14f824e8ba35efb9555.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
|
|
|
275
|
+ // is_default: 'N',
|
|
|
276
|
+ // product_skc: '346702',
|
|
|
277
|
+ // status: '1'
|
|
|
278
|
+ // }
|
|
|
279
|
+ // ],
|
|
|
280
|
+ // is_advance: 'N',
|
|
|
281
|
+ // is_discount: 'N',
|
|
|
282
|
+ // is_limited: 'N',
|
|
|
283
|
+ // is_new: 'Y',
|
|
|
284
|
+ // is_outlets: 2,
|
|
|
285
|
+ // is_promotion: 104,
|
|
|
286
|
+ // is_soon_sold_out: 'N',
|
|
|
287
|
+ // is_special: 'N',
|
|
|
288
|
+ // market_price: 359,
|
|
|
289
|
+ // max_sort_id: 8,
|
|
|
290
|
+ // middle_sort_id: 66,
|
|
|
291
|
+ // product_id: 373513,
|
|
|
292
|
+ // product_name: '5CM 字母印花领结',
|
|
|
293
|
+ // product_skn: 51206748,
|
|
|
294
|
+ // sales_num: 0,
|
|
|
295
|
+ // sales_phrase: '春潮新势力',
|
|
|
296
|
+ // sales_price: 359,
|
|
|
297
|
+ // shelve_time: 1457140500,
|
|
|
298
|
+ // small_sort_id: 77,
|
|
|
299
|
+ // status: 1,
|
|
|
300
|
+ // stock_number: 19,
|
|
|
301
|
+ // storage_num: 19,
|
|
|
302
|
+ // tags: [
|
|
|
303
|
+ // 'is_new'
|
|
|
304
|
+ // ],
|
|
|
305
|
+ // vip1_price: 341.05,
|
|
|
306
|
+ // vip2_price: 323.1,
|
|
|
307
|
+ // vip3_price: 315.92,
|
|
|
308
|
+ // vip_discount_type: 1,
|
|
|
309
|
+ // vip_price: 0
|
|
|
310
|
+ // }
|
|
|
311
|
+ // ],
|
|
|
312
|
+ // rec_id: '00f185af-936a-4053-97f8-1c802cb91e8b'
|
|
|
313
|
+ // },
|
|
|
314
|
+ // md5: 'ace93d0f598db0bebec30234381c0cbf',
|
|
|
315
|
+ // message: 'Product List.'
|
|
|
316
|
+ // };
|
|
|
317
|
+ if (result && result.code === 200) {
|
221
|
return productProcess.processProductList(result.data.product_list);
|
318
|
return productProcess.processProductList(result.data.product_list);
|
222
|
} else {
|
319
|
} else {
|
223
|
- logger.error('get instalment promote goods return is not 200');
|
320
|
+ logger.error('get instalment promote goods return code is not 200');
|
224
|
return '';
|
321
|
return '';
|
225
|
}
|
322
|
}
|
226
|
});
|
323
|
});
|
|
@@ -264,5 +361,7 @@ module.exports = { |
|
@@ -264,5 +361,7 @@ module.exports = { |
264
|
getQueryAmtInfo,
|
361
|
getQueryAmtInfo,
|
265
|
getSearchIntallment,
|
362
|
getSearchIntallment,
|
266
|
sendVerifyCode,
|
363
|
sendVerifyCode,
|
267
|
- activateService
|
364
|
+ activateService,
|
|
|
365
|
+ getResources,
|
|
|
366
|
+ getQueryAmtList
|
268
|
}; |
367
|
}; |