This repository was archived by the owner on May 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -172,6 +172,8 @@ Commands:
172172 env:domain:list [envId] 列出环境的安全域名列表
173173 env:domain:create <domain> [envId] 添加环境安全域名,多个以斜杠 / 分隔
174174 env:domain:delete [envId] 删除环境的安全域名
175+ env:login:list [envId] 列出环境登录配置
176+ env:login:config [envId] 配置环境登录方式
175177 functions:deploy [options] [functionName] [envId] 创建云函数
176178 functions:code:update <functionName> [envId] 创建云函数
177179 functions:list [options] [envId] 展示云函数列表
@@ -273,6 +275,16 @@ tcb login --key
273275
274276` env:domain:delete ` 命令用于删除环境配置的安全域名,输入此命令回车运行后,CLI 会拉取环境的所有域名,用户可与 CLI 进行交互,选择需要删除的域名。
275277
278+ ### env:login: list
279+
280+ 完整命令: ` env:login:list [envId] `
281+
282+ ` env:login:list ` 命令用于列出环境配置的登录方式列表,可以查看环境配置的登录方式,以及相关的状态。
283+
284+ ### env:login: config
285+
286+ ` env:login:config ` 命令用于配置环境的登录方式,如绑定微信公众平台等。
287+
276288### functions: list
277289
278290完整命令:` tcb functions:list [options] [envId] `
Original file line number Diff line number Diff line change @@ -103,6 +103,62 @@ client
103103deleted: number
104104```
105105
106+ #### env.login.list(options)
107+
108+ 参数:
109+
110+ ``` js
111+ {
112+ envId: string
113+ }
114+ ```
115+
116+ 响应:
117+
118+ ``` js
119+ [
120+ {
121+ Id: ' be00aef4-2eb9-4413-a50d-289873bcdb0d' ,
122+ Platform: ' WECHAT-OPEN' ,
123+ PlatformId: ' wx9c4c30a432a38ebc' ,
124+ Status: ' ENABLE' ,
125+ UpdateTime: ' 2019-08-19 15:26:04' ,
126+ CreateTime: ' 2019-07-11 15:47:23'
127+ }
128+ ]
129+ ```
130+
131+ ### env.login.update(options)
132+
133+ 参数:
134+
135+ ``` js
136+ {
137+ configId: ' ' ,
138+ envId: ' ' ,
139+ status: ' ENABLE' ,
140+ appId: ' ' ,
141+ appSecret: ' '
142+ }
143+ ```
144+
145+ 响应:void
146+
147+ ### env.login.create(options)
148+
149+ 参数:
150+
151+ ``` js
152+ {
153+ envId: ' ' ,
154+ platform: ' ' ,
155+ appId: ' ' ,
156+ appSecret: ' '
157+ }
158+ ```
159+
160+ 响应:void
161+
106162#### functions.invoke(options)
107163
108164参数:
Original file line number Diff line number Diff line change @@ -62,7 +62,6 @@ commander_1.default
6262 const platform = platformMap [ type ] ;
6363 const item = configList . find ( item => item . Platform === platform ) ;
6464 if ( status === '禁用' && item ) {
65- console . log ( item ) ;
6665 await env_1 . updateLoginConfig ( {
6766 status : status === '启用' ? 'ENABLE' : 'DISABLE' ,
6867 configId : item . Id ,
Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ module.exports = class Client {
1212 list : env_1 . getEnvAuthDomains ,
1313 create : env_1 . createEnvDomain ,
1414 delete : env_1 . deleteEnvDomain
15+ } ,
16+ login : {
17+ list : env_1 . getLoginConfigList ,
18+ create : env_1 . createLoginConfig ,
19+ update : env_1 . updateLoginConfig
1520 }
1621 } ;
1722 this . functions = {
You can’t perform that action at this time.
0 commit comments