✨ feat(活动): 微信公众号口令

This commit is contained in:
luying
2023-04-04 10:11:05 +08:00
parent 94b6dca4cc
commit cecd959c00
22 changed files with 441 additions and 43 deletions
+29
View File
@@ -419,4 +419,33 @@ export class PushMsg37Param {
public setSign(sign: string) {
this.sign = sign;
}
}
export class SendGiftCodeParam {
user_id: number; // 用户id
server_id: number; // 区服id
role_id: string; // 角色id
gift_id: string; // 礼包id
order_id: string; // 订单号
time: number; // 时间戳
sign: string; // 37给的签名
constructor(data: any) {
this.user_id = data.user_id;
this.server_id = data.server_id;
this.role_id = data.role_id;
this.gift_id = data.gift_id;
this.order_id = data.order_id;
this.time = data.time;
this.sign = data.sign;
}
checkParams() {
return this.user_id != undefined && this.server_id != undefined && this.gift_id != undefined && this.order_id != undefined && this.time != undefined && this.sign != undefined
}
getBody() {
let { user_id, server_id, role_id, gift_id, order_id, time } = this;
return { user_id, server_id, role_id, gift_id, order_id, time }
}
}