瀏覽代碼

修复推送消息内容存在问题

locky 2 年之前
父節點
當前提交
166fafba78
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Service/DevicePushService.py

+ 2 - 2
Service/DevicePushService.py

@@ -363,7 +363,7 @@ class DevicePushService:
                 if device_type in MULTI_CHANNEL_TYPE_LIST:
                     send_text = '{} 通道:{} 日期:{}'.format(msg_type, channel, n_date)
                 else:
-                    send_text = '{} 日期:{}'.format(msg_type, channel, n_date)
+                    send_text = '{} 日期:{}'.format(msg_type, n_date)
         else:
             if event_type == 704:
                 msg_type = 'Battery remaining ' + electricity
@@ -395,7 +395,7 @@ class DevicePushService:
                 if device_type in MULTI_CHANNEL_TYPE_LIST:
                     send_text = '{} channel:{} date:{}'.format(msg_type, channel, n_date)
                 else:
-                    send_text = '{} date:{}'.format(msg_type, channel, n_date)
+                    send_text = '{} date:{}'.format(msg_type, n_date)
         return send_text
 
     @staticmethod