diff --git a/src/public/pay.ts b/src/public/pay.ts index d745850..f5ad184 100644 --- a/src/public/pay.ts +++ b/src/public/pay.ts @@ -31,6 +31,8 @@ export class PayFun { let obj: payLog = {time: G.time, type: type}; if (conf.time != -1) obj.eTime = time + conf.time; + obj.args = payArgs + if (payId == 'G123SendGift') { obj.popup_id = payArgs.popup_id obj.template_id = payArgs.template_id @@ -250,7 +252,7 @@ export class PayFun { console.log("Christmasfun.payChristmas Error", e); } - if (payArgs && payArgs?.htype) { + if (payArgs && payArgs?.htype && payArgs?.selectList) { let selectPrize = await G.ioredis.get(`pay:${payId}:${player.uid}`); if (selectPrize) { prize.push(...JSON.parse(selectPrize)) diff --git a/src/shared/protocols/pay/PtlGetList.ts b/src/shared/protocols/pay/PtlGetList.ts index c492026..1fcd362 100644 --- a/src/shared/protocols/pay/PtlGetList.ts +++ b/src/shared/protocols/pay/PtlGetList.ts @@ -20,6 +20,11 @@ export type payLog = { * @system 系统赠送 */ type: 'user' | 'system' | 'legu'; + /** + * 其他信息 + */ + args?: any; + /** G123 */ popup_id?: string diff --git a/src/shared/protocols/serviceProto.ts b/src/shared/protocols/serviceProto.ts index d24faef..e67824f 100644 --- a/src/shared/protocols/serviceProto.ts +++ b/src/shared/protocols/serviceProto.ts @@ -18482,6 +18482,14 @@ export const serviceProto: ServiceProto = { }, { "id": 3, + "name": "args", + "type": { + "type": "Any" + }, + "optional": true + }, + { + "id": 4, "name": "popup_id", "type": { "type": "String" @@ -18489,7 +18497,7 @@ export const serviceProto: ServiceProto = { "optional": true }, { - "id": 4, + "id": 5, "name": "buyNumber", "type": { "type": "Number" @@ -18497,7 +18505,7 @@ export const serviceProto: ServiceProto = { "optional": true }, { - "id": 5, + "id": 6, "name": "template_id", "type": { "type": "String"