Browse Source

修改电量提醒

chenshibin 4 years ago
parent
commit
58df7a0f64
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Controller/DetectControllerV2.py

+ 2 - 2
Controller/DetectControllerV2.py

@@ -991,7 +991,7 @@ class PWnotificationView(View):
         etype = int(event_type)
         if lang == 'cn':
             if etype == 704:
-                msg_type = '电量不足:'+electricity+'%'
+                msg_type = '电量已剩:'+electricity+'%'
             elif etype == 702:
                 msg_type = '摄像头休眠'
             elif etype == 703:
@@ -1005,7 +1005,7 @@ class PWnotificationView(View):
                 # send_text = '{msg_type} 通道:{channel} 日期:{date}'.format(msg_type=msg_type, channel=channel, date=n_date)
         else:
             if etype == 704:
-                msg_type = 'Insufficient battery: '+electricity+'%'
+                msg_type = 'Battery is left: '+electricity+'%'
             elif etype == 702:
                 msg_type = 'Camera sleep'
             elif etype == 703: