为了应付web-server的tsc的修改
This commit is contained in:
@@ -228,7 +228,7 @@ export class RoleNameCallBackParam {
|
||||
time: number; // 时间戳
|
||||
sign: string;
|
||||
|
||||
constructor(param: RoleNameCallBackParam) {
|
||||
constructor(param: any) {
|
||||
this.username = param.username;
|
||||
this.game_key = param.game_key;
|
||||
this.sid = param.sid;
|
||||
@@ -256,7 +256,7 @@ export class GuildNameCallBackParam {
|
||||
time: number; // 时间戳
|
||||
sign: string;
|
||||
|
||||
constructor(param: GuildNameCallBackParam) {
|
||||
constructor(param: any) {
|
||||
this.game_key = param.game_key;
|
||||
this.sid = param.sid;
|
||||
this.type = param.type;
|
||||
@@ -282,7 +282,7 @@ export class GetGuildInfoByUserParam {
|
||||
sid: number; // 区服id
|
||||
sign: string;
|
||||
|
||||
constructor(param: GetGuildInfoByUserParam) {
|
||||
constructor(param: any) {
|
||||
this.game_key = param.game_key;
|
||||
this.uid = param.uid;
|
||||
this.time = param.time;
|
||||
|
||||
@@ -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';
|
||||
@@ -368,8 +368,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, '');
|
||||
|
||||
@@ -29,7 +29,7 @@ export default class Sdk extends Service {
|
||||
public async pay37Callback(params: PayCallback37Data) {
|
||||
const { ctx } = this;
|
||||
const { app } = ctx;
|
||||
let ip = ctx.header['x-real-ip'];
|
||||
let ip = typeof ctx.header['x-real-ip'] == 'string'? ctx.header['x-real-ip']: ctx.header['x-real-ip'][0];
|
||||
console.log('*****pay37Callback', ip)
|
||||
|
||||
let checkResult = this.check37Sign(params);
|
||||
|
||||
Reference in New Issue
Block a user