后台:添加推送给某人逻辑

This commit is contained in:
luying
2021-03-09 20:50:25 +08:00
parent 8c982ae7b6
commit 17b6b9ee61
2 changed files with 10 additions and 14 deletions

View File

@@ -98,7 +98,7 @@ export default class User extends BaseModel {
@prop({ required: true, default: 0 })
auth: number;
public static async createUser(isGuest: boolean, tel: string, token: string, platform: string, pkgName: string, serverType: string, deviceId: string, guestTime?: number) {
public static async createUser(isGuest: boolean, tel: string, token: string, platform: string, pkgName: string, serverType: string, deviceId: string, guestTime: number = 0) {
const curTime: Date = new Date();
const uid = await CounterModel.getNewCounter(COUNTER.UID);