From e269b1412a7aee26f2816dc0243338c8a78f1ba1 Mon Sep 17 00:00:00 2001 From: dy Date: Fri, 22 Dec 2023 21:27:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/shared/protocols/serviceProto.ts | 16 +++++++++++++++- src/shared/protocols/shop/PtlOpen.ts | 4 +--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/shared/protocols/serviceProto.ts b/src/shared/protocols/serviceProto.ts index 62ac7ca..bba26ab 100644 --- a/src/shared/protocols/serviceProto.ts +++ b/src/shared/protocols/serviceProto.ts @@ -19726,7 +19726,21 @@ export const serviceProto: ServiceProto = { "id": 2, "name": "t", "type": { - "type": "Number" + "type": "Union", + "members": [ + { + "id": 0, + "type": { + "type": "Number" + } + }, + { + "id": 1, + "type": { + "type": "String" + } + } + ] } }, { diff --git a/src/shared/protocols/shop/PtlOpen.ts b/src/shared/protocols/shop/PtlOpen.ts index 8ba4fc5..19341f9 100644 --- a/src/shared/protocols/shop/PtlOpen.ts +++ b/src/shared/protocols/shop/PtlOpen.ts @@ -1,5 +1,3 @@ - - /** * 商店open接口 */ @@ -32,7 +30,7 @@ export type shopItem = { /** 掉落类型 */ 'a': string; /** 掉落id */ - 't': number; + 't': number | string; /** 掉落数量 */ 'n': number; /** 权重 */