Authored by 张孝茹

order

@@ -108,7 +108,6 @@ module.exports = class extends global.yoho.BaseModel { @@ -108,7 +108,6 @@ module.exports = class extends global.yoho.BaseModel {
108 yh_channel: params.yh_channel, 108 yh_channel: params.yh_channel,
109 uid: params.uid 109 uid: params.uid
110 }, 110 },
111 - api: global.yoho.API,  
112 param: {code: 200} 111 param: {code: 200}
113 }); 112 });
114 } 113 }
@@ -255,7 +254,6 @@ module.exports = class extends global.yoho.BaseModel { @@ -255,7 +254,6 @@ module.exports = class extends global.yoho.BaseModel {
255 data: _.assign({ 254 data: _.assign({
256 method: 'app.SpaceOrders.closeReasons' 255 method: 'app.SpaceOrders.closeReasons'
257 }, params), 256 }, params),
258 - api: global.yoho.API,  
259 param: {cache: true, code: 200} 257 param: {cache: true, code: 200}
260 }).then(result => { 258 }).then(result => {
261 259
@@ -273,7 +271,6 @@ module.exports = class extends global.yoho.BaseModel { @@ -273,7 +271,6 @@ module.exports = class extends global.yoho.BaseModel {
273 refundReason() { 271 refundReason() {
274 return this.get({ 272 return this.get({
275 data: {method: 'app.SpaceOrders.refundApplyReasons'}, 273 data: {method: 'app.SpaceOrders.refundApplyReasons'},
276 - api: global.yoho.API,  
277 param: {code: 200, cache: true} 274 param: {code: 200, cache: true}
278 }).then(result => { 275 }).then(result => {
279 return _.get(result, 'data', []); 276 return _.get(result, 'data', []);
@@ -335,8 +332,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -335,8 +332,7 @@ module.exports = class extends global.yoho.BaseModel {
335 method: 'app.SpaceOrders.confirm', 332 method: 'app.SpaceOrders.confirm',
336 order_code: params.order_code, 333 order_code: params.order_code,
337 uid: params.uid 334 uid: params.uid
338 - },  
339 - api: global.yoho.API 335 + }
340 }); 336 });
341 } 337 }
342 }; 338 };
@@ -18,7 +18,6 @@ module.exports = class extends global.yoho.BaseModel { @@ -18,7 +18,6 @@ module.exports = class extends global.yoho.BaseModel {
18 closeReasons() { 18 closeReasons() {
19 return this.get({ 19 return this.get({
20 data: {method: 'app.SpaceOrders.closeReasons'}, 20 data: {method: 'app.SpaceOrders.closeReasons'},
21 - api: global.yoho.API,  
22 param: {cache: true} 21 param: {cache: true}
23 }).then((result) => { 22 }).then((result) => {
24 if (result && result.code === 200) { 23 if (result && result.code === 200) {
@@ -158,8 +157,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -158,8 +157,7 @@ module.exports = class extends global.yoho.BaseModel {
158 method: 'app.SpaceOrders.detail', 157 method: 'app.SpaceOrders.detail',
159 uid: uid, 158 uid: uid,
160 order_code: orderCode 159 order_code: orderCode
161 - },  
162 - api: global.yoho.API 160 + }
163 }).then(result => { 161 }).then(result => {
164 if (result && result.code === 200) { 162 if (result && result.code === 200) {
165 let orderDetail = camelCase(result.data); 163 let orderDetail = camelCase(result.data);
@@ -301,8 +299,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -301,8 +299,7 @@ module.exports = class extends global.yoho.BaseModel {
301 method: 'app.SpaceOrders.delOrderByCode', 299 method: 'app.SpaceOrders.delOrderByCode',
302 uid: uid, 300 uid: uid,
303 order_code: orderCode 301 order_code: orderCode
304 - },  
305 - api: global.yoho.API 302 + }
306 }); 303 });
307 } 304 }
308 305
@@ -313,8 +310,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -313,8 +310,7 @@ module.exports = class extends global.yoho.BaseModel {
313 method: 'app.Shopping.readd', 310 method: 'app.Shopping.readd',
314 uid: uid, 311 uid: uid,
315 order_code: orderCode 312 order_code: orderCode
316 - },  
317 - api: global.yoho.API 313 + }
318 }).then((result) => { 314 }).then((result) => {
319 if (result && result.code === 200) { 315 if (result && result.code === 200) {
320 result.message = '商品已重新加入购物车'; 316 result.message = '商品已重新加入购物车';
@@ -341,8 +337,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -341,8 +337,7 @@ module.exports = class extends global.yoho.BaseModel {
341 reasons: reason, 337 reasons: reason,
342 gender: gender, 338 gender: gender,
343 yh_channel: channel 339 yh_channel: channel
344 - },  
345 - api: global.yoho.API 340 + }
346 }); 341 });
347 } 342 }
348 343
@@ -357,8 +352,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -357,8 +352,7 @@ module.exports = class extends global.yoho.BaseModel {
357 order_code: params.orderCode, 352 order_code: params.orderCode,
358 reason_id: params.reasonId, 353 reason_id: params.reasonId,
359 reason: params.reason 354 reason: params.reason
360 - },  
361 - api: global.yoho.API 355 + }
362 }); 356 });
363 } 357 }
364 358
@@ -390,8 +384,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -390,8 +384,7 @@ module.exports = class extends global.yoho.BaseModel {
390 } 384 }
391 385
392 return this.get({ 386 return this.get({
393 - data: finalParams,  
394 - api: global.yoho.API 387 + data: finalParams
395 }); 388 });
396 } 389 }
397 390
@@ -486,8 +479,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -486,8 +479,7 @@ module.exports = class extends global.yoho.BaseModel {
486 } 479 }
487 480
488 return this.post({ 481 return this.post({
489 - data: apiParams,  
490 - api: global.yoho.API 482 + data: apiParams
491 }); 483 });
492 } 484 }
493 }; 485 };