fix: 更改短信模板,删除用户模型原型方法

This commit is contained in:
chaosBreaking
2019-09-03 21:07:04 +08:00
parent 3dc188faa1
commit a360f03a81
3 changed files with 2 additions and 30 deletions

View File

@@ -27,7 +27,7 @@ module.exports = {
sendSMS(phone, {
msgParam: { code },
templateCode: 'SMS_142465215',
signName: 'TIC钱包管家'
signName: '第五维度'
}),
this.saveCode({
id: phone,

View File

@@ -19,7 +19,7 @@ const CodeSchema = new mongoose.Schema({
expiresAt: {
type: Date,
default: Date.now,
expires: 3600
expires: 600
}
}, {
timestamps: {