Showing
4 changed files
with
3 additions
and
8 deletions
@@ -58,7 +58,6 @@ module.exports = class extends global.yoho.BaseModel { | @@ -58,7 +58,6 @@ module.exports = class extends global.yoho.BaseModel { | ||
58 | method: 'app.favorite.getFavoriteCount', | 58 | method: 'app.favorite.getFavoriteCount', |
59 | uid: params.uid | 59 | uid: params.uid |
60 | }, | 60 | }, |
61 | - api: global.yoho.SingleAPI, | ||
62 | param: {code: 200} | 61 | param: {code: 200} |
63 | }); | 62 | }); |
64 | } else { | 63 | } else { |
@@ -81,8 +81,7 @@ class newHome extends global.yoho.BaseModel { | @@ -81,8 +81,7 @@ class newHome extends global.yoho.BaseModel { | ||
81 | }, | 81 | }, |
82 | param: { | 82 | param: { |
83 | code: 200 | 83 | code: 200 |
84 | - }, | ||
85 | - api: global.yoho.SingleAPI | 84 | + } |
86 | }; | 85 | }; |
87 | 86 | ||
88 | return this.get(options); | 87 | return this.get(options); |
@@ -10,7 +10,6 @@ const _ = require('lodash'); | @@ -10,7 +10,6 @@ const _ = require('lodash'); | ||
10 | const comment = require('./consult-comment'); | 10 | const comment = require('./consult-comment'); |
11 | const bundle = require('./bundle'); | 11 | const bundle = require('./bundle'); |
12 | const api = global.yoho.API; | 12 | const api = global.yoho.API; |
13 | -const singleAPI = global.yoho.SingleAPI; | ||
14 | const helpers = global.yoho.helpers; | 13 | const helpers = global.yoho.helpers; |
15 | const productProcess = require(`${utils}/product-process`); | 14 | const productProcess = require(`${utils}/product-process`); |
16 | 15 | ||
@@ -194,8 +193,7 @@ module.exports = class extends global.yoho.BaseModel { | @@ -194,8 +193,7 @@ module.exports = class extends global.yoho.BaseModel { | ||
194 | method: 'app.favorite.isFavoriteNew', | 193 | method: 'app.favorite.isFavoriteNew', |
195 | uid: uid, | 194 | uid: uid, |
196 | id: productId | 195 | id: productId |
197 | - }, | ||
198 | - api: singleAPI | 196 | + } |
199 | }).then((result) => { | 197 | }).then((result) => { |
200 | if (result && result.code === 200) { | 198 | if (result && result.code === 200) { |
201 | return result.data; | 199 | return result.data; |
@@ -239,8 +239,7 @@ module.exports = class extends global.yoho.BaseModel { | @@ -239,8 +239,7 @@ module.exports = class extends global.yoho.BaseModel { | ||
239 | 239 | ||
240 | return this.get({ | 240 | return this.get({ |
241 | url: 'favorite', | 241 | url: 'favorite', |
242 | - data: finalParams, | ||
243 | - api: global.yoho.SingleAPI | 242 | + data: finalParams |
244 | }); | 243 | }); |
245 | } | 244 | } |
246 | 245 |
-
Please register or login to post a comment