Authored by htoooth

Merge branch 'feature/captcha-change' into release/6.3

... ... @@ -37,6 +37,15 @@ module.exports = class extends global.yoho.BaseModel {
return this.get({data: params});
}
checkBindCode(area, mobile, code) {
return this.get({data: {
method: 'app.register.validRegCode',
mobile: mobile,
area: area,
code: code
}});
}
bindMobile(openId, sourceType, mobile, area, password, nickname, code) {
let params = {
method: 'app.passport.bind',
... ...
... ... @@ -19,6 +19,7 @@ module.exports = class extends global.yoho.BaseModel {
this.bindApi = new BindApi(ctx);
this.bindCheck = this.bindApi.bindCheck.bind(this.bindApi);
this.checkBindCode = this.bindApi.checkBindCode.bind(this.bindApi);
this.bindMobile = this.bindApi.bindMobile.bind(this.bindApi);
this.relateMobile = this.bindApi.relateMobile.bind(this.bindApi);
this.changeCheck = this.bindApi.changeCheck.bind(this.bindApi);
... ...