Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ต่อจาก pw.WriteBoolean(item.IsShowHighLight)
- ของ Gacha items
- ----- - - - - -- - - - - - -
- if event, ok := models.EventGachapon[machine.EventID]; ok {
- pw.WriteBoolean(true)
- if event.HaveGuaranteeEvent { // มีอีเว้น การันตีไหม
- pw.WriteBoolean(true)
- pw.WriteUInt32(event.NumGuaranteeAmount)
- pw.WriteInt64(event.GuaranteeCloseTime.Time.Unix())
- pw.WriteUInt32(event.NumGuaranteeAmount - userData.PlayEventAmount) // user data เหลืออีกกี่ครั้งจะการันตี
- } else {
- pw.WriteBoolean(false)
- }
- if event.HaveOpenFreeEvent { // มีอีเว้นเปิดฟรีไหม
- pw.WriteBoolean(true)
- pw.WriteInt64(userData.PlayFreeTime.Unix()) // เวลาที่จะเปิดฟรี
- } else {
- pw.WriteBoolean(false)
- }
- pw.WriteUInt32(event.MileageBox1). // Mileage detail
- pw.WriteUInt32(event.MileageBox2)
- pw.WriteUInt32(event.MileageBox3)
- pw.WriteUInt32(event.MileageBox4)
- pw.WriteUInt32(userData.PlayAmount). // user Mileage data
- pw.WriteBoolean(userData.IsReceiveBox1)
- pw.WriteBoolean(userData.IsReceiveBox2)
- pw.WriteBoolean(userData.IsReceiveBox3)
- pw.WriteBoolean(userData.IsReceiveBox4)
- } else {
- pw.WriteBoolean(false)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement