手机号固定写进数据库
This commit is contained in:
@@ -26,6 +26,9 @@ export default class Sms extends BaseModel {
|
||||
@prop({ required: true })
|
||||
countToday: number;
|
||||
|
||||
@prop({ required: true })
|
||||
isFixed: boolean;
|
||||
|
||||
public static async findByTel(tel: string, lean = true) {
|
||||
const sms: SmsType = await smsModel.findOne({ tel }).lean(lean);
|
||||
return sms;
|
||||
|
||||
Reference in New Issue
Block a user