소스 검색

修改定制推送跳转链接可为空

locky 5 일 전
부모
커밋
cb4f6c3827
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      AdminController/UserManageController.py

+ 2 - 2
AdminController/UserManageController.py

@@ -1095,7 +1095,7 @@ class UserManagement(View):
     def addOrEditCustomizedPush(cls, request, request_dict, response):
         title = request_dict.get('title', None)
         msg = request_dict.get('msg', None)
-        link = request_dict.get('link', None)
+        link = request_dict.get('link', '')
         icon = request.FILES.get('icon', None)
         country = request_dict.get('country', None)
         device_type = request_dict.get('deviceType', None)
@@ -1105,7 +1105,7 @@ class UserManagement(View):
         push_app = request_dict.get('pushApp', None)
         is_edit = request_dict.get('isEdit', None)
 
-        if not all([title, msg, link, country, device_type, register_period, time_zone, push_time, push_app]):
+        if not all([title, msg, country, device_type, register_period, time_zone, push_time, push_app]):
             return response.json(444)
 
         # 截掉UTC和空格