diff --git a/index.ts b/index.ts index ab62ab1..c2b81f9 100644 --- a/index.ts +++ b/index.ts @@ -33,6 +33,9 @@ import { import { SDKConfig } from "./base"; export class IDMeshAPI { + public static version() { + return '1.4.6' + } protected app: AppApi; diff --git a/test.js b/test.js index dd4b789..e031483 100644 --- a/test.js +++ b/test.js @@ -8,6 +8,7 @@ const test = async () => { sk: 'ev1g39d3oiu41uE8taPg1zL0CcpifX15', }); const resp = await api.user.get({ id: '100124' }); + console.assert(IDMeshAPI.version() === '1.4.6'); console.assert(resp.data.id === '100124'); console.assert(resp.data.username === 'wanghaifeng1'); };