Browse Source

不以套餐id查询是否重复订阅

peng 1 year ago
parent
commit
b43f695e3f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/PaymentCycle.py

+ 1 - 1
Controller/PaymentCycle.py

@@ -26,7 +26,7 @@ PAY_LOGGER = logging.getLogger('pay')
 class Paypal:
     # 检查是否有重复订阅
     def checkSubscriptions(userID, uid, rank):
-        hasOrder = Order_Model.objects.filter(UID=uid, rank=rank)
+        hasOrder = Order_Model.objects.filter(UID=uid)
         hasOrder = hasOrder.filter(~Q(agreement_id='')).values('agreement_id', 'orderID').order_by('-addTime')[0:1]
         if not hasOrder.exists():
             return True