@jayfong/x-server 2.21.2 → 2.21.4
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 -0
- package/lib/services/sms.js +3 -0
- package/package.json +1 -1
package/lib/_cjs/services/sms.js
CHANGED
|
@@ -30,6 +30,9 @@ class SmsService {
|
|
|
30
30
|
if (payload.provider === 'tencentCloud') {
|
|
31
31
|
const SmsClient = TencentCloud.sms.v20210111.Client;
|
|
32
32
|
const smsClient = new SmsClient({
|
|
33
|
+
// 虽然说了不需要,但必须填,不然会报错
|
|
34
|
+
// The request is missing a required parameter `Region`.
|
|
35
|
+
region: 'ap-beijing',
|
|
33
36
|
credential: {
|
|
34
37
|
secretId: this.options.providerOptions.secretId,
|
|
35
38
|
secretKey: this.options.providerOptions.secretKey
|
package/lib/services/sms.js
CHANGED
|
@@ -25,6 +25,9 @@ export class SmsService {
|
|
|
25
25
|
if (payload.provider === 'tencentCloud') {
|
|
26
26
|
const SmsClient = TencentCloud.sms.v20210111.Client;
|
|
27
27
|
const smsClient = new SmsClient({
|
|
28
|
+
// 虽然说了不需要,但必须填,不然会报错
|
|
29
|
+
// The request is missing a required parameter `Region`.
|
|
30
|
+
region: 'ap-beijing',
|
|
28
31
|
credential: {
|
|
29
32
|
secretId: this.options.providerOptions.secretId,
|
|
30
33
|
secretKey: this.options.providerOptions.secretKey
|