更新增倍镜和调焦器的筛选规则

FFIB 2 ans auparavant
Parent
Commettre
ce04f0324b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      api/mch_views.py

+ 1 - 1
api/mch_views.py

@@ -464,7 +464,7 @@ def consumer_info_api(request):
464 464
         user.integral += model.shot_member_integral
465 465
         # 配件不增加会员等级,只发放积分。
466 466
         to_send_coupon = False
467
-        if user.level < UserInfo.MEMBER_BLACK_GOLD and model.category != '调焦器' and model.category != '增倍镜':
467
+        if user.level < UserInfo.MEMBER_BLACK_GOLD and model.shot_type_id != 'V6PkivthL4sdADp4GNpQ4C':
468 468
             user.level += 1
469 469
             to_send_coupon = True
470 470
         user.save()