فهرست منبع

修改AI体验结束时间

zhangdongming 2 سال پیش
والد
کامیت
426720ee6f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Controller/AiController.py

+ 1 - 1
Controller/AiController.py

@@ -436,7 +436,7 @@ class AiView(View):
                 return response.json(173)
 
             effective_day = ai_store_meal_qs[0]['effective_day']
-            endTime = nowTime + effective_day * 24 * 60 * 60  # 套餐结束时间
+            endTime = int(time.time()) + effective_day * 24 * 60 * 60  # 套餐结束时间
             ai_cn_store_meal_qs = AiStoreMeal.objects.filter(id=rank, lang__lang='cn', is_show=1). \
                 values('lang__content', 'lang__title')
             if ai_cn_store_meal_qs.exists():