소스 검색

追加打印

peng 1 년 전
부모
커밋
29cc6e52c7
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      Service/DevicePushService.py

+ 4 - 1
Service/DevicePushService.py

@@ -162,7 +162,7 @@ class DevicePushService:
 
                 # 保存系统消息或推送消息数据
                 user_id = up['userID_id']
-                if user_id not in saved_user_id_list:     # 防止同一用户重复写入数据
+                if user_id not in saved_user_id_list:  # 防止同一用户重复写入数据
                     # 系统消息
                     if params['is_sys_msg']:
                         sys_msg_text = cls.get_msg_text(channel=params['channel'], n_time=params['n_time'], lang=lang,
@@ -752,6 +752,9 @@ class DevicePushService:
         @return: True|False
         """
         try:
+            LOGGING.info(
+                'is_send_app_push函数参数打印:uid:{} event_type:{} event_tag:{} app_push_config:{} msg_interval:{}'.format(
+                    uid, event_type, event_tag, app_push_config, msg_interval))
             if not app_push_config:
                 return True