Skip to content

Commit 1eaf146

Browse files
committed
fix: token missing for capi
1 parent 990f48b commit 1eaf146

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"semantic-release": "^17.0.4"
7171
},
7272
"dependencies": {
73-
"@tencent-sdk/capi": "^0.3.0",
73+
"@tencent-sdk/capi": "^0.3.1",
7474
"@ygkit/request": "^0.1.1",
7575
"cos-nodejs-sdk-v5": "^2.6.2",
7676
"moment": "^2.25.3",

src/modules/apigw/apis.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const ACTIONS = [
3434
];
3535

3636
const APIS = ApiFactory({
37-
debug: true,
37+
// debug: true,
3838
serviceType: 'apigateway',
3939
version: '2018-08-08',
4040
actions: ACTIONS,

src/modules/apigw/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ class Apigw {
5656
Action: 'DescribeService',
5757
ServiceId: serviceId,
5858
});
59-
console.log('detail', detail);
6059
if (detail) {
6160
detail.InnerSubDomain = detail.InternalSubDomain;
6261
exist = true;

src/utils/api.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ function ApiFactory({
3333
const reqData = cleanEmptyValue({
3434
Action: action,
3535
Version: version,
36-
Token: capi.options.Token || null,
3736
...inputs,
3837
});
3938
inputs = cleanEmptyValue(inputs);

0 commit comments

Comments
 (0)