Commit f13f9fa8 by 宋毅

tj

parent 9f3d0042
...@@ -19,11 +19,13 @@ class VCodeCache extends CacheBase { ...@@ -19,11 +19,13 @@ class VCodeCache extends CacheBase {
async buildCacheVal(cachekey, inputkey, val, ex, ...items) { async buildCacheVal(cachekey, inputkey, val, ex, ...items) {
var pobj = val; var pobj = val;
var vcode = await this.smsUtil.getUidStr(6, 10); var vcode = await this.smsUtil.getUidStr(6, 10);
if (pobj.reqType && pobj.reqType == "otherVcode") { if (pobj.reqType) {
//【XXX】您的验证码是:602639(5分钟内有效),工作人员不会索取,请勿泄露。-------描述在模板中配置 if (pobj.reqType == "otherVcode") {
pobj.msgContent = vcode; //【XXX】您的验证码是:602639(5分钟内有效),工作人员不会索取,请勿泄露。-------描述在模板中配置
this.smsUtil.aliOtherSendMsg(pobj.mobile, pobj.accessKeyId, pobj.accessKeySecret, pobj.tmplCode, pobj.msgContent = vcode;
pobj.signName, JSON.stringify({ code: vcode })); this.smsUtil.aliOtherSendMsg(pobj.mobile, pobj.accessKeyId, pobj.accessKeySecret, pobj.tmplCode,
pobj.signName, JSON.stringify({ code: vcode }));
}
} }
else { else {
//inputkey采用appkey_mobile的形式 //inputkey采用appkey_mobile的形式
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment