@yoooloo42/beat 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/libs/Ali-SMS.js +2 -2
package/package.json
CHANGED
package/src/libs/Ali-SMS.js
CHANGED
|
@@ -13,7 +13,7 @@ const Core = require('@alicloud/pop-core')
|
|
|
13
13
|
* @param {object} clientBox 客户端参数
|
|
14
14
|
* @returns {Promise<object>} 返回阿里云 API 的响应对象
|
|
15
15
|
*/
|
|
16
|
-
const
|
|
16
|
+
const clientBoxInit = {
|
|
17
17
|
action: 'SendSms',
|
|
18
18
|
apiVersion: '2017-05-25',
|
|
19
19
|
regionId: 'cn-hangzhou', // 短信服务 API 的区域,通常使用杭州(cn-hangzhou)
|
|
@@ -72,7 +72,7 @@ function sms(cellphone, shortMessageCode, clientBox) {
|
|
|
72
72
|
function sendVercode(cellphone, codeLength = 6, clientBox){
|
|
73
73
|
return new Promise(function (resolve, reject) {
|
|
74
74
|
const vercode = random.vercode6N(codeLength);
|
|
75
|
-
sms(cellphone, vercode).then(result=>{
|
|
75
|
+
sms(cellphone, vercode, clientBox).then(result=>{
|
|
76
76
|
resolve(Object.assign(result, {vercode}))
|
|
77
77
|
})
|
|
78
78
|
})
|