Parcourir la source

取消推送日期

peng il y a 2 ans
Parent
commit
681a14335c
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  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