Skip to content

Commit eb6dff1

Browse files
committed
refactor: add client sdk to get userId of bot
1 parent c18e136 commit eb6dff1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

client/packages/tailchat-client-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tailchat-client-sdk",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"description": "",
55
"main": "lib/index.js",
66
"scripts": {

client/packages/tailchat-client-sdk/src/openapi/client/base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export class TailchatBaseClient {
4747
// NOTICE: 注意,有30天过期时间,需要定期重新登录以换取新的token
4848
// 这里先不换
4949
this.jwt = data.data?.jwt;
50+
this.userId = data.data?.userId;
5051

5152
console.log('tailchat openapp login success!');
5253

0 commit comments

Comments
 (0)