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