const userid = "xxxx";
const pwd = "123456";
const now = new Date();
const month = (now.getMonth() + 1).toString().padStart(2, '0');
const day = now.getDate().toString().padStart(2, '0');
const hour = now.getHours().toString().padStart(2, '0');
const minute = now.getMinutes().toString().padStart(2, '0');
const second = now.getSeconds().toString().padStart(2, '0');
const timestamp = month + day + hour + minute + second;//时间戳
const test = "00000000"; //文档要求定值拼接,不用改动
const password = code_util.md5(userid+test+pwd+timestamp);//进行32位md5小写加密
const content = code_util.urlencodeAsGBK(env.templateContent).substring(23);
const body = `userid=${userid}&pwd=${password}&mobile=${user.phone}&content=${content}`;
env.body = body;
最近测试零信任设备,综合网关2.0。版本是2.5.16,用内置的梦网api短信网关设置,已经设置用户ID和密码了,post的地址
也改了,发送测试短信,从网站回馈看,就是认证失败,关键我看不出这段代码有什么异常。
请路过的大神给看看呗