@jayfong/x-server 2.21.1 → 2.21.2
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/lib/_cjs/services/sms.js +3 -3
- package/lib/services/sms.js +1 -1
- package/package.json +1 -1
package/lib/_cjs/services/sms.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports.SmsService = void 0;
|
|
6
|
-
var
|
|
6
|
+
var TencentCloud = _interopRequireWildcard(require("tencentcloud-sdk-nodejs-sms"));
|
|
7
7
|
var _http_error = require("../core/http_error");
|
|
8
8
|
const smsErrorTypeRegexpMap = {
|
|
9
9
|
TEXT_INTERCEPTION: /驳回|词汇|不合规|敏感词|关键字|钓鱼|审核|内容|欺诈|拦截|违规/,
|
|
@@ -28,7 +28,7 @@ class SmsService {
|
|
|
28
28
|
}
|
|
29
29
|
async send(payload) {
|
|
30
30
|
if (payload.provider === 'tencentCloud') {
|
|
31
|
-
const SmsClient =
|
|
31
|
+
const SmsClient = TencentCloud.sms.v20210111.Client;
|
|
32
32
|
const smsClient = new SmsClient({
|
|
33
33
|
credential: {
|
|
34
34
|
secretId: this.options.providerOptions.secretId,
|
package/lib/services/sms.js
CHANGED