mirror of
https://github.com/Sitoi/dailycheckin.git
synced 2024-11-17 13:48:03 +08:00
✨ 功能(main.py):添加对自定义商品代码的支持
♻️ 重构(main.py):更改了使用商品代码的方式,现在使用用户提供的代码,如果没有提供,则使用默认代码
This commit is contained in:
parent
4143d92266
commit
1f7c7159a3
@ -283,6 +283,7 @@ userId: 2
|
|||||||
userId = self.check_item.get("userid")
|
userId = self.check_item.get("userid")
|
||||||
lat = self.check_item.get("lat")
|
lat = self.check_item.get("lat")
|
||||||
lng = self.check_item.get("lng")
|
lng = self.check_item.get("lng")
|
||||||
|
item_codes = self.check_item.get("item_codes", self.ITEM_CODES)
|
||||||
reserve_rule = self.check_item.get("reserve_rule", 0)
|
reserve_rule = self.check_item.get("reserve_rule", 0)
|
||||||
msg = [
|
msg = [
|
||||||
{
|
{
|
||||||
@ -298,7 +299,7 @@ userId: 2
|
|||||||
self.get_current_session_id()
|
self.get_current_session_id()
|
||||||
self.init_headers(user_id=userId, token=token, lng=lng, lat=lat)
|
self.init_headers(user_id=userId, token=token, lng=lng, lat=lat)
|
||||||
try:
|
try:
|
||||||
for item in self.ITEM_CODES:
|
for item in item_codes:
|
||||||
max_shop_id = self.get_location_count(
|
max_shop_id = self.get_location_count(
|
||||||
province=province,
|
province=province,
|
||||||
city=city,
|
city=city,
|
||||||
|
Loading…
Reference in New Issue
Block a user