Эх сурвалжийг харах

优化根据ip解析或用户设置返回状态代码

linhaohong 10 сар өмнө
parent
commit
355de48724

+ 1 - 1
Controller/AppSetController.py

@@ -318,7 +318,7 @@ class AppSetView(View):
                 # 用户控制
                 if user_set_qs.exists():
                     if restriction.statusName == "splashAdStatus":
-                        if user_set_qs[0].end_time < int(time.time()):
+                        if user_set_qs[0].end_time > int(time.time()):
                             response_data[restriction.statusName] = user_set_qs[0].status
                         else:
                             response_data[restriction.statusName] = restriction.default_status