...
|
...
|
@@ -10,9 +10,8 @@ |
|
|
const API = require(`${global.library}/api`).API;
|
|
|
const api = new API();
|
|
|
|
|
|
class RegService {
|
|
|
|
|
|
static bindCheck(mobile, openId, sourceType, area) {
|
|
|
const RegService = {
|
|
|
bindCheck(mobile, openId, sourceType, area) {
|
|
|
let params = {
|
|
|
method: 'app.passport.signCheck',
|
|
|
area: area,
|
...
|
...
|
@@ -22,9 +21,8 @@ class RegService { |
|
|
};
|
|
|
|
|
|
return api.get('', params);
|
|
|
}
|
|
|
|
|
|
static sendBindMsg(area, mobile) {
|
|
|
},
|
|
|
sendBindMsg(area, mobile) {
|
|
|
let params = {
|
|
|
method: 'app.passport.smsbind',
|
|
|
mobile: mobile,
|
...
|
...
|
@@ -32,18 +30,16 @@ class RegService { |
|
|
};
|
|
|
|
|
|
return api.get('', params);
|
|
|
}
|
|
|
|
|
|
static checkBindCode(area, mobile, code) {
|
|
|
},
|
|
|
checkBindCode(area, mobile, code) {
|
|
|
return api.get('', {
|
|
|
method: 'app.register.validRegCode',
|
|
|
mobile: mobile,
|
|
|
area: area,
|
|
|
code: code
|
|
|
});
|
|
|
}
|
|
|
|
|
|
static bindMobile(openId, sourceType, mobile, area, password, nickname) {
|
|
|
},
|
|
|
bindMobile(openId, sourceType, mobile, area, password, nickname) {
|
|
|
let params = {
|
|
|
method: 'app.passport.bind',
|
|
|
mobile: mobile,
|
...
|
...
|
@@ -61,9 +57,8 @@ class RegService { |
|
|
}
|
|
|
|
|
|
return api.get('', params);
|
|
|
}
|
|
|
|
|
|
static relateMobile(openId, sourceType, mobile, area) {
|
|
|
},
|
|
|
relateMobile(openId, sourceType, mobile, area) {
|
|
|
return api.get('', {
|
|
|
method: 'app.passport.relateMobile',
|
|
|
mobile: mobile,
|
...
|
...
|
@@ -71,17 +66,15 @@ class RegService { |
|
|
source_type: sourceType,
|
|
|
area: area
|
|
|
});
|
|
|
}
|
|
|
|
|
|
static changeCheck(mobile, area) {
|
|
|
},
|
|
|
changeCheck(mobile, area) {
|
|
|
return api.get('', {
|
|
|
method: 'app.passport.changeCheck',
|
|
|
mobile: mobile,
|
|
|
area: area
|
|
|
});
|
|
|
}
|
|
|
|
|
|
static changeMobile(uid, mobile, area, code) {
|
|
|
},
|
|
|
changeMobile(uid, mobile, area, code) {
|
|
|
return api.get('', {
|
|
|
method: 'app.passport.changeMobile',
|
|
|
mobile: mobile,
|
...
|
...
|
@@ -90,6 +83,6 @@ class RegService { |
|
|
area: area
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
|
|
module.exports = RegService; |
...
|
...
|
|