@yoooloo42/beat 1.0.13 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoooloo42/beat",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -18,8 +18,10 @@ const clientBoxInit = {
18
18
  apiVersion: '2017-05-25',
19
19
  regionId: 'cn-hangzhou', // 短信服务 API 的区域,通常使用杭州(cn-hangzhou)
20
20
  endpoint: 'https://dysmsapi.aliyuncs.com', // 短信服务的 Endpoint
21
- signName: 'litafire',
22
- templateCode: 'SMS_497935086'
21
+ // accessKeyId: ' ',
22
+ // accessKeySecret: ' ',
23
+ // signName: ' ',
24
+ // templateCode: ' '
23
25
  }
24
26
 
25
27
  function sms(cellphone, shortMessageCode, clientBox) {
@@ -67,10 +69,10 @@ function sms(cellphone, shortMessageCode, clientBox) {
67
69
  }
68
70
 
69
71
  // 发送验证码
70
- function sendVercode(cellphone, codeLength = 6){
72
+ function sendVercode(cellphone, codeLength = 6, clientBox){
71
73
  return new Promise(function (resolve, reject) {
72
74
  const vercode = random.vercode6N(codeLength);
73
- sms(cellphone, vercode).then(result=>{
75
+ sms(cellphone, vercode, clientBox).then(result=>{
74
76
  resolve(Object.assign(result, {vercode}))
75
77
  })
76
78
  })