全局:清理部分console
This commit is contained in:
@@ -61,7 +61,7 @@ export default class FriendRelation extends BaseModel {
|
||||
|
||||
let result: FriendRelationType = await document.lean({ getters: true, virtuals: true });;
|
||||
|
||||
console.log(JSON.stringify(result));
|
||||
// console.log(JSON.stringify(result));
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ export default class Sms extends BaseModel {
|
||||
}
|
||||
|
||||
public hasSendToday() {
|
||||
console.log(moment(this.updateTime).format('YYYY-MM-DD'), moment(Date.now()).format('YYYY-MM-DD'));
|
||||
// console.log(moment(this.updateTime).format('YYYY-MM-DD'), moment(Date.now()).format('YYYY-MM-DD'));
|
||||
return moment(this.updateTime).format('YYYY-MM-DD') === moment(Date.now()).format('YYYY-MM-DD');
|
||||
}
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ export default class User extends BaseModel {
|
||||
}
|
||||
|
||||
public static async createOrUpdate(isGuest: boolean, tel: string, token: string, platform: string, pkgName: string, serverType: string, deviceId: string) {
|
||||
console.log(tel);
|
||||
// console.log(tel);
|
||||
|
||||
let user: UserType = await UserModel.findOne({ tel }).lean({ getters: true });
|
||||
if (!user) {
|
||||
|
||||
Reference in New Issue
Block a user