forked from Dniel97/artemis
cxb: fix data handlers for s1 & add coupons for s2
This commit is contained in:
parent
7fb98118b2
commit
cdd67ffbc3
9
titles/cxb/data/rss2/FreeCoupon.csv
Normal file
9
titles/cxb/data/rss2/FreeCoupon.csv
Normal file
@ -0,0 +1,9 @@
|
||||
1,1412103600,4070908801,1,
|
||||
2,1412103600,4070908801,1,
|
||||
3,1412103600,4070908801,1,
|
||||
4,1412103600,4070908801,1,
|
||||
5,1412103600,4070908801,1,
|
||||
6,1412103600,4070908801,1,
|
||||
7,1412103600,4070908801,1,
|
||||
8,1412103600,4070908801,1,
|
||||
9,1412103600,4070908801,1,
|
|
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user