Showing
1 changed file
with
11 additions
and
17 deletions
@@ -456,23 +456,17 @@ class familyModel extends global.yoho.BaseModel { | @@ -456,23 +456,17 @@ class familyModel extends global.yoho.BaseModel { | ||
456 | } | 456 | } |
457 | 457 | ||
458 | getCoinData(params) { | 458 | getCoinData(params) { |
459 | - let options = { | ||
460 | - data: { | ||
461 | - method: 'app.yohocoin.lists', | ||
462 | - uid: params.uid, | ||
463 | - source: params.source || -1, | ||
464 | - queryType: params.queryType || 0, | ||
465 | - beginTime: params.beginTime ? this.formatDay(parseInt(params.beginTime, 10)) : '', | ||
466 | - endTime: params.endTime ? this.formatDay(parseInt(params.endTime, 10)) : '', | ||
467 | - page: params.page || 1, | ||
468 | - limit: params.limit || 10 | ||
469 | - }, | ||
470 | - param: { | ||
471 | - code: 200 | ||
472 | - } | ||
473 | - }; | ||
474 | - | ||
475 | - return this.get(options).then(result => { | 459 | + return family.get('user/getYohoCoinLog', { |
460 | + uid: params.uid, | ||
461 | + source: params.source || -1, | ||
462 | + queryType: params.queryType || 0, | ||
463 | + beginTime: params.beginTime ? this.formatDay(parseInt(params.beginTime, 10)) : '', | ||
464 | + endTime: params.endTime ? this.formatDay(parseInt(params.endTime, 10)) : '', | ||
465 | + page: params.page || 1, | ||
466 | + limit: params.limit || 10 | ||
467 | + }, { | ||
468 | + code: 200 | ||
469 | + }).then(result => { | ||
476 | let resu = { | 470 | let resu = { |
477 | coinList: [] | 471 | coinList: [] |
478 | }; | 472 | }; |
-
Please register or login to post a comment