Explorar el Código

修改电量提醒

chenshibin hace 4 años
padre
commit
58df7a0f64
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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: