-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.default.js
43 lines (41 loc) · 1.38 KB
/
config.default.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
'use strict';
const tencentCloud = require('tencentcloud-sdk-nodejs');
/**
* egg-tencent-sms default config
*
* @member Config#tencentSms
* @property {object} tencentCloud tencentcloud-sdk-nodejs
* @property {string} version tencent cloud sms sdk version
* @property {string} ReqMethod HttpProfile reqMethod
* @property {number} ReqTimeout HttpProfile reqTimeout
* @property {string} Endpoint HttpProfile endpoint
* @property {string} SignMethod ClientProfile signMethod
* @property {string} Region smsClient region
* @property {string} SecretId smsClient SecretId
* @property {string} SecretKey smsClient SecretKey
* @property {string} SendSms.SmsSdkAppid action params SendSms.SmsSdkAppid
* @property {string} SendSms.Sign action params SendSms.Sign
* @property {string} SendSms.TemplateID action params SendSms.TemplateID
* @see https://cloud.tencent.com/document/product/382/43197
*/
exports.tencentSms = {
default: {
tencentCloud,
version: 'v20190711',
ReqMethod: 'POST',
ReqTimeout: 30,
Endpoint: 'sms.tencentcloudapi.com',
SignMethod: 'HmacSHA256',
Region: 'ap-guangzhou',
// SecretId: 'SECRET_ID',
// SecretKey: 'SECRET_KEY',
},
// client: {
// // Tencent Cloud SDK Action name, cover transfer params
// SendSms: {
// SmsSdkAppid: 'SMS_SDK_APPID',
// Sign: 'SMS_SIGN',
// TemplateID: 'SMS_TEMPLATE_ID',
// }
// },
};