npm install @shun-js/smsshun.js服务:国内短信服务
以sms.json命名
``json`
{
"port": 8002,
"submail": {
"appid": "xx",
"appkey": "xx"
},
"feishu": {
"url": "http://127.0.0.1:8001/feishu/bot",
"feishuUrl": "https://open.feishu.cn/open-apis/bot/v2/hook/xx"
}
}
`shell全局安装该服务
npm i -g @shun-js/sms
请求
`shell
curl --location --request POST 'http://127.0.0.1:8002/sms' \
--data-urlencode 'mobile=xx' \
--data-urlencode 'content=【xx】验证码:123456,如非本人操作,请忽略此短信。'
``