Commit f13f9fa8 by 宋毅

tj

parent 9f3d0042
......@@ -19,11 +19,13 @@ class VCodeCache extends CacheBase {
async buildCacheVal(cachekey, inputkey, val, ex, ...items) {
var pobj = val;
var vcode = await this.smsUtil.getUidStr(6, 10);
if (pobj.reqType && pobj.reqType == "otherVcode") {
//【XXX】您的验证码是:602639(5分钟内有效),工作人员不会索取,请勿泄露。-------描述在模板中配置
pobj.msgContent = vcode;
this.smsUtil.aliOtherSendMsg(pobj.mobile, pobj.accessKeyId, pobj.accessKeySecret, pobj.tmplCode,
pobj.signName, JSON.stringify({ code: vcode }));
if (pobj.reqType) {
if (pobj.reqType == "otherVcode") {
//【XXX】您的验证码是:602639(5分钟内有效),工作人员不会索取,请勿泄露。-------描述在模板中配置
pobj.msgContent = vcode;
this.smsUtil.aliOtherSendMsg(pobj.mobile, pobj.accessKeyId, pobj.accessKeySecret, pobj.tmplCode,
pobj.signName, JSON.stringify({ code: vcode }));
}
}
else {
//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