Merge commit '7cfbc45e80094334c9da8fe00c4f5833d67082a7' into feature/backend
This commit is contained in:
@@ -11,7 +11,7 @@ import { isString } from 'underscore';
|
||||
import { getAge } from '../pubUtils/timeUtil';
|
||||
import { resResult } from '../pubUtils/util';
|
||||
import { checkTeeanAgerTime } from '../pubUtils/authenticateUtil';
|
||||
import { authenticate } from '../pubUtils/httpUtil';
|
||||
// import { authenticate } from '../pubUtils/httpUtil';
|
||||
import { checkTask } from 'app/pubUtils/taskUtil';
|
||||
import { getChannelId, loginValidata } from '../pubUtils/sdkUtil';
|
||||
import { LoginValidateData37 } from 'app/domain/sdk';
|
||||
@@ -371,8 +371,8 @@ export default class Auth extends Service {
|
||||
const ctx = this.ctx;
|
||||
// TODO 接SDK
|
||||
console.log(name, idNum);
|
||||
let result = await authenticate(name, idNum, ctx.userCode, ctx.pkgName);
|
||||
if (!result) return ctx.service.utils.resResult(STATUS.AUTHEN_FAIL);
|
||||
// let result = await authenticate(name, idNum, ctx.userCode, ctx.pkgName);
|
||||
// if (!result) return ctx.service.utils.resResult(STATUS.AUTHEN_FAIL);
|
||||
|
||||
let birthday = this.getBirthdayByIdCard(idNum);
|
||||
let user = await UserModel.authentication(ctx.uid, birthday, '');
|
||||
|
||||
Reference in New Issue
Block a user