From 01c1aa1988eea94028cabbe43dd2eedd086fe12b Mon Sep 17 00:00:00 2001 From: imeepos Date: Sun, 28 Sep 2025 15:16:04 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=AE=80=E5=8C=96=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=89=A7=E8=A1=8C=E8=AE=B0=E5=BD=95=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除getUserExecutions中的用户ID验证和路径参数,直接调用/templates/executions/user接口 --- src/sdk/sdk-server.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/sdk/sdk-server.ts b/src/sdk/sdk-server.ts index 97a6090..df5b99d 100644 --- a/src/sdk/sdk-server.ts +++ b/src/sdk/sdk-server.ts @@ -636,11 +636,7 @@ export class SdkServer { */ async getUserExecutions(userId?: string): Promise { try { - const uid = userId || Taro.getStorageSync(TOKEN_UID_KEY); - if (!uid) { - throw new Error('用户ID不存在'); - } - const response = await this.request<{ executions: UserExecution[]; total: number }>(`/templates/executions/user/${uid}`); + const response = await this.request<{ executions: UserExecution[]; total: number }>(`/templates/executions/user`); return response.data.executions || []; } catch (error) { throw error;