我的代码:```javascript
const { RoleType,ChatStatus,ChatEventType,CozeAPI, COZE_CN_BASE_URL,getJWTToken } = require('@coze/api');
const createConfig = require('uni-config-center')
const db = uniCloud.database();
// 创建userscollection对象
const testLogcollection = db.collection('test-log');
const cozeConfig = createConfig({ // 获取配置实例
pluginId: 'coze' // common/uni-config-center下的插件配置目录名
})
const Config = cozeConfig.config()
console.log("coze config=",Config);
云对象日志:
```javascript
2025-04-27 15:15:51.456 [coze-streamchat][SYSTEM][INFO][0a4b080f196761a361b204d] reserve_instance_start: reserveFunctionInstance start
2025-04-27 15:15:51.459 [coze-streamchat][SYSTEM][INFO][0a4b080f196761a361b204d] reserve_instance_end: reserveFunctionInstance success; instanceName=d7c30b15-21d0-434d-97ac-42d1a59e7859 ip=10.75.8.79
2025-04-27 15:15:51.459 [coze-streamchat][SYSTEM][INFO][0a4b080f196761a361b204d] call_function_start: call function start
2025-04-27 15:15:51.692 [coze-streamchat][SYSTEM][INFO][0a4b080f196761a361b204d] user_code_execution: d7c30b15-21d0-434d-97ac-42d1a59e7859,version: aa9bc0f0
2025-04-27 15:15:51.692 [coze-streamchat][USER][INFO][0a4b080f196761a361b204d] execute: d7c30b15-21d0-434d-97ac-42d1a59e7859,[EventPearl] start handle request event: websocket:connect
2025-04-27 15:15:51.841 [coze-streamchat][USER][INFO][0a4b080f196761a361b204d] execute: d7c30b15-21d0-434d-97ac-42d1a59e7859,coze config= {}
2025-04-27 15:15:51.843 [coze-streamchat][USER][INFO][0a4b080f196761a361b204d] execute: d7c30b15-21d0-434d-97ac-42d1a59e7859,get_coze_token= {
baseURL: 'https://api.coze.cn',
appId: undefined,
aud: undefined,
keyid: undefined,
privateKey: undefined,
sessionName: 'test'
}
1 个回复
y***@qq.com (作者)
是我自己的问题,可以了。