后台:邮件
This commit is contained in:
@@ -96,18 +96,18 @@ export class SendMailFun {
|
||||
|
||||
// 从GMMail表读取数据
|
||||
public async setWithGmMail(gmmailId: string) {
|
||||
let gmmail = await GMMailModel.getGmMailById(gmmailId);
|
||||
if(gmmail) {
|
||||
this.gmmail = gmmail;
|
||||
if(gmmail.useTempTime) {
|
||||
this.sendTime = gmmail.sendTime;
|
||||
this.endTime = gmmail.endTime;
|
||||
} else {
|
||||
this.sendTime = nowSeconds();
|
||||
this.endTime = this.sendTime + (gmmail.continueHour||0) * 60 * 60;
|
||||
}
|
||||
this.setParam({ ...gmmail });
|
||||
}
|
||||
// let gmmail = await GMMailModel.getGmMailById(gmmailId);
|
||||
// if(gmmail) {
|
||||
// this.gmmail = gmmail;
|
||||
// if(gmmail.useTempTime) {
|
||||
// this.sendTime = gmmail.sendTime;
|
||||
// this.endTime = gmmail.endTime;
|
||||
// } else {
|
||||
// this.sendTime = nowSeconds();
|
||||
// this.endTime = this.sendTime + (gmmail.continueHour||0) * 60 * 60;
|
||||
// }
|
||||
// this.setParam({ ...gmmail });
|
||||
// }
|
||||
}
|
||||
|
||||
private setParam(params: { sendName?: string, endTime?: number, params?: string[], goods?: RewardInter[], content?: string }) {
|
||||
|
||||
Reference in New Issue
Block a user