FXSend/Doc/深信服短信验证码配置/深信服短信验证码配置.txt
2025-02-28 17:05:50 +08:00

59 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

方案1
1、请求配置
请求地址POST http://sms3.mobset.com:8095/SDK/sms_send.asp
请求体CorpID=301169&LoginName=0713&Passwd=Sn353872&send_no={{user.mobile_phone}}&msg={{config.sms_content}}
2、响应配置
XML
Code 等于 1
方案2
1、请求体修改
CorpID=301169&LoginName=0713&Passwd=Sn353872&charset=utf-8&send_no={{user.mobile_phone}}&msg={{config.sms_content}}
2、响应配置
右上角,响应数据预处理,填入:
if (response.body.indexOf(“1”)){
result['code'] = 0;
}
选Json格式填code =0 。
方案3
1、请求配置
请求地址POST http://sms3.mobset.com:8095/SDK3/sms
请求头部Content-Type application/x-www-form-urlencoded
请求体CorpID=301169&LoginName=0713&SecretKey={{env.sign}}&TimeStamp={{env.timeStamp}}&Methods=SmsSend&PhoneNumbers={{user.mobile_phone}}&Content={{config.sms_content}}
Methods=SmsSend
请求数据预处理:
let corpid = "301169"
let loginname="0713"
let password="Sn353872"
let time = new Date();
let timeStamp = time.toISOString().replace(/-/gi,'').replace(/T/gi,'').replace(/:/gi,'').substr(0,14);
env.timeStamp = timeStamp;
env.sign = code_util.md5(corpid+password+timeStamp);
2、响应配置
Code = 1