1
0
mirror of synced 2024-11-27 23:40:48 +01:00

cxb: fix data handlers for s1 & add coupons for s2

This commit is contained in:
Midorica 2023-11-25 15:41:38 -05:00
parent 7fb98118b2
commit cdd67ffbc3
3 changed files with 8 additions and 3 deletions

Binary file not shown.
1 1 1412103600 4070908801 1
2 2 1412103600 4070908801 1
3 3 1412103600 4070908801 1
4 4 1412103600 4070908801 1
5 5 1412103600 4070908801 1
6 6 1412103600 4070908801 1
7 7 1412103600 4070908801 1
8 8 1412103600 4070908801 1
9 9 1412103600 4070908801 1

View File

@ -122,7 +122,7 @@ class CxbRevSunriseS1(CxbBase):
def handle_data_extra_stage_list_request(self, data: Dict) -> Dict:
return {"data": ""}
def handle_data_ex0001_request(self, data: Dict) -> Dict:
def handle_data_exxxxx_request(self, data: Dict) -> Dict:
return {"data": ""}
def handle_data_one_more_extra_list_request(self, data: Dict) -> Dict:
@ -131,7 +131,7 @@ class CxbRevSunriseS1(CxbBase):
def handle_data_bonus_list10100_request(self, data: Dict) -> Dict:
return {"data": ""}
def handle_data_oe0001_request(self, data: Dict) -> Dict:
def handle_data_oexxxx_request(self, data: Dict) -> Dict:
return {"data": ""}
def handle_data_free_coupon_request(self, data: Dict) -> Dict:

View File

@ -140,7 +140,12 @@ class CxbRevSunriseS2(CxbBase):
return {"data": ""}
def handle_data_free_coupon_request(self, data: Dict) -> Dict:
return {"data": ""}
ret_str=""
with open(r"titles/cxb/data/rss2/FreeCoupon.csv") as coupon:
lines = coupon.readlines()
for line in lines:
ret_str += f"{line[:-1]}\r\n"
return({"data":ret_str})
@cached(lifetime=86400)
def handle_data_news_list_request(self, data: Dict) -> Dict: