Merge branch 'feature/captcha-change' into release/6.3
Showing
2 changed files
with
10 additions
and
0 deletions
@@ -37,6 +37,15 @@ module.exports = class extends global.yoho.BaseModel { | @@ -37,6 +37,15 @@ module.exports = class extends global.yoho.BaseModel { | ||
37 | return this.get({data: params}); | 37 | return this.get({data: params}); |
38 | } | 38 | } |
39 | 39 | ||
40 | + checkBindCode(area, mobile, code) { | ||
41 | + return this.get({data: { | ||
42 | + method: 'app.register.validRegCode', | ||
43 | + mobile: mobile, | ||
44 | + area: area, | ||
45 | + code: code | ||
46 | + }}); | ||
47 | + } | ||
48 | + | ||
40 | bindMobile(openId, sourceType, mobile, area, password, nickname, code) { | 49 | bindMobile(openId, sourceType, mobile, area, password, nickname, code) { |
41 | let params = { | 50 | let params = { |
42 | method: 'app.passport.bind', | 51 | method: 'app.passport.bind', |
@@ -19,6 +19,7 @@ module.exports = class extends global.yoho.BaseModel { | @@ -19,6 +19,7 @@ module.exports = class extends global.yoho.BaseModel { | ||
19 | this.bindApi = new BindApi(ctx); | 19 | this.bindApi = new BindApi(ctx); |
20 | 20 | ||
21 | this.bindCheck = this.bindApi.bindCheck.bind(this.bindApi); | 21 | this.bindCheck = this.bindApi.bindCheck.bind(this.bindApi); |
22 | + this.checkBindCode = this.bindApi.checkBindCode.bind(this.bindApi); | ||
22 | this.bindMobile = this.bindApi.bindMobile.bind(this.bindApi); | 23 | this.bindMobile = this.bindApi.bindMobile.bind(this.bindApi); |
23 | this.relateMobile = this.bindApi.relateMobile.bind(this.bindApi); | 24 | this.relateMobile = this.bindApi.relateMobile.bind(this.bindApi); |
24 | this.changeCheck = this.bindApi.changeCheck.bind(this.bindApi); | 25 | this.changeCheck = this.bindApi.changeCheck.bind(this.bindApi); |
-
Please register or login to post a comment