Showing
2 changed files
with
2 additions
and
2 deletions
@@ -15,7 +15,7 @@ module.exports = class extends global.yoho.BaseModel { | @@ -15,7 +15,7 @@ module.exports = class extends global.yoho.BaseModel { | ||
15 | 15 | ||
16 | this.api = new CouponApi(ctx); | 16 | this.api = new CouponApi(ctx); |
17 | 17 | ||
18 | - this.listAsync = this.api.listAsync.bind(this); | 18 | + this.listAsync = this.api.listAsync.bind(this.api); |
19 | } | 19 | } |
20 | 20 | ||
21 | acquireAsync(cid, uid) { | 21 | acquireAsync(cid, uid) { |
@@ -13,6 +13,6 @@ module.exports = class extends global.yoho.BaseModel { | @@ -13,6 +13,6 @@ module.exports = class extends global.yoho.BaseModel { | ||
13 | 13 | ||
14 | this.api = new Api(ctx); | 14 | this.api = new Api(ctx); |
15 | 15 | ||
16 | - this.getShareOrderListAsync = this.api.getShareOrderListAsync.bind(this); | 16 | + this.getShareOrderListAsync = this.api.getShareOrderListAsync.bind(this.api); |
17 | } | 17 | } |
18 | }; | 18 | }; |
-
Please register or login to post a comment