sdk:37ios支付及退款

This commit is contained in:
luying
2022-03-31 16:15:49 +08:00
parent 9da83c56be
commit 76fe3adb7f
15 changed files with 275 additions and 14 deletions

View File

@@ -338,4 +338,44 @@ export class GetServerListParam {
checkParams() {
return this.appid != undefined && this.gid != undefined && this.time != undefined && this.sign != undefined
}
}
export class IOSRefundParam {
appid: string; // pid, 平台id
uid: number; // 用户id
game_id: number; // 发行游戏id
fx_c_game_id: string; // 子游戏id
sid: number; // 游戏服id
actor_id: string; // 角色id
order_id: string; // 37订单号
order_no: string; // 本地订单号
money: number; // 金额
game_coin: number; // 元宝数
product_id: string; // 商品id
time: number; // 请求时间
ext: string; // 扩展参数
sign: string; // 签名
constructor(data: any) {
this.appid = data.appid;
this.uid = data.uid;
this.game_id = data.game_id;
this.fx_c_game_id = data.fx_c_game_id;
this.sid = data.sid;
this.actor_id = data.actor_id;
this.order_id = data.order_id;
this.order_no = data.order_no;
this.money = data.money;
this.game_coin = data.game_coin;
this.product_id = data.product_id;
this.time = data.time;
this.ext = data.ext;
this.sign = data.sign;
}
getBody() {
let { appid, uid, game_id, sid, actor_id, order_id, order_no, money, game_coin, product_id, time, ext } = this;
return { appid, uid, game_id, sid, actor_id, order_id, order_no, money, game_coin, product_id, time, ext }
}
}