数数:3种模式接完
This commit is contained in:
@@ -141,7 +141,6 @@ export function connectThinkingData(app: Application) {
|
|||||||
ta = ThinkingAnalytics.initWithBatchMode(SDK_TA_CONST.APPID, SDK_TA_CONST.SERVER_URL);
|
ta = ThinkingAnalytics.initWithBatchMode(SDK_TA_CONST.APPID, SDK_TA_CONST.SERVER_URL);
|
||||||
} else if (THINKING_DATA_MODE == THINKING_DATA_MODE_LIST.LOGGING) {
|
} else if (THINKING_DATA_MODE == THINKING_DATA_MODE_LIST.LOGGING) {
|
||||||
ta = ThinkingAnalytics.initWithLoggingMode(SDK_TA_CONST.LOG_PATH, {
|
ta = ThinkingAnalytics.initWithLoggingMode(SDK_TA_CONST.LOG_PATH, {
|
||||||
rotateHourly: true,
|
|
||||||
pm2: true
|
pm2: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,5 +31,5 @@ export enum SDK_37_CONST {
|
|||||||
export enum SDK_TA_CONST {
|
export enum SDK_TA_CONST {
|
||||||
APPID = '74120ffc6f2945448cc60bf1540c5ad4',
|
APPID = '74120ffc6f2945448cc60bf1540c5ad4',
|
||||||
SERVER_URL = 'https://shushu.xyplay.cn',
|
SERVER_URL = 'https://shushu.xyplay.cn',
|
||||||
LOG_PATH = '/home/app/logs/',
|
LOG_PATH = '/root/zyz/game-server/logs/ta',
|
||||||
}
|
}
|
||||||
@@ -745,4 +745,4 @@ export enum THINKING_DATA_MODE_LIST {
|
|||||||
BATCH = 'batch',
|
BATCH = 'batch',
|
||||||
LOGGING = 'logging',
|
LOGGING = 'logging',
|
||||||
}
|
}
|
||||||
export let THINKING_DATA_MODE = THINKING_DATA_MODE_LIST.BATCH;
|
export let THINKING_DATA_MODE = THINKING_DATA_MODE_LIST.DEBUG;
|
||||||
+1
-1
@@ -259,7 +259,7 @@ export default class User extends BaseModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static async findUserByUid(uid: number) {
|
public static async findUserByUid(uid: number) {
|
||||||
const user: UserType = await UserModel.findOne({ uid }).select('uid tel channelInfo channelType ip').lean({ getters: true });
|
const user: UserType = await UserModel.findOne({ uid }).select('uid userCode tel channelInfo channelType ip').lean({ getters: true });
|
||||||
return user;
|
return user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user