| | |
| | | if target_code.find("60") != 0 and target_code.find("00") != 0 and target_code.find("30") != 0: |
| | | return False, "ç§åæ¿ç票ä¸ä¹°" |
| | | |
| | | if sv.æ¿åæäº¤ä»£ç : |
| | | deal_codes = set() |
| | | for p in sv.æ¿åæäº¤ä»£ç : |
| | | deal_codes |= set(sv.æ¿åæäº¤ä»£ç [p]) |
| | | if len(deal_codes) >= settings.max_buy_codes_count: |
| | | return False, f"ä¹°å
¥ä»£ç æ°è¶
é({len(deal_codes)}/{settings.max_buy_codes_count})" |
| | | |
| | | # ç®æ 票æ¿å涨å个æ°>=2 |
| | | can_buy_plates = set() |
| | | for plate in sv.ä»£ç æ¿å: |
| | |
| | | |
| | | limit_up_codes_count = max([(p, len(sv.å¼çå¦ææ£æ¿å涨å.get(p, []))) for p in can_buy_plates], key=lambda x: x[1])[1] |
| | | |
| | | threshold_money *= max(min(10 - limit_up_codes_count + 3, 10), 5)/10 |
| | | threshold_money *= max(min(10 - limit_up_codes_count + 1, 10), 5) / 10 |
| | | |
| | | # print(target_code, sv.èªç±æµéå¸å¼, threshold_money, limit_up_codes_count) |
| | | |
| | | |
| | | # threshold_money = 200e4 # int(sv.æ¨æ¥æäº¤é * 0.2 * sv.仿¥æ¶¨åä»· * 0.05) |
| | | if big_order_money < threshold_money: |