浏览代码

取消推送日期

peng 2 年之前
父节点
当前提交
681a14335c
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      Service/DevicePushService.py

+ 4 - 4
Service/DevicePushService.py

@@ -397,9 +397,9 @@ class DevicePushService:
                     send_text = msg_type
             else:
                 if device_type in MULTI_CHANNEL_TYPE_LIST:
-                    send_text = '{} 通道:{} 日期:{}'.format(msg_type, channel, n_date)
+                    send_text = '{} 通道:{}'.format(msg_type, channel)
                 else:
-                    send_text = '{} 日期:{}'.format(msg_type, n_date)
+                    send_text = '{}'.format(msg_type)
         else:
             if event_type == 51:
                 msg_type = 'Screen change detected'
@@ -458,9 +458,9 @@ class DevicePushService:
                     send_text = msg_type
             else:
                 if device_type in MULTI_CHANNEL_TYPE_LIST:
-                    send_text = '{} channel:{} date:{}'.format(msg_type, channel, n_date)
+                    send_text = '{} channel:{}'.format(msg_type, channel)
                 else:
-                    send_text = '{} date:{}'.format(msg_type, n_date)
+                    send_text = '{}'.format(msg_type)
         return send_text
 
     @staticmethod