|
@@ -214,7 +214,7 @@ class NotificationView(View):
|
|
return False
|
|
return False
|
|
|
|
|
|
def get_msg_text(self, channel, n_time, lang, tz, event_type, is_sys=0):
|
|
def get_msg_text(self, channel, n_time, lang, tz, event_type, is_sys=0):
|
|
- n_date = CommonService.get_now_time_str(n_time=n_time, tz=tz)
|
|
|
|
|
|
+ n_date = CommonService.get_now_time_str(n_time=n_time, tz=tz,lang=lang)
|
|
etype = int(event_type)
|
|
etype = int(event_type)
|
|
if lang == 'cn':
|
|
if lang == 'cn':
|
|
if etype == 704:
|
|
if etype == 704:
|
|
@@ -229,6 +229,7 @@ class NotificationView(View):
|
|
send_text = '{msg_type} 通道:{channel}'.format(msg_type=msg_type, channel=channel)
|
|
send_text = '{msg_type} 通道:{channel}'.format(msg_type=msg_type, channel=channel)
|
|
else:
|
|
else:
|
|
send_text = '{msg_type} 通道:{channel} 日期:{date}'.format(msg_type=msg_type, channel=channel, date=n_date)
|
|
send_text = '{msg_type} 通道:{channel} 日期:{date}'.format(msg_type=msg_type, channel=channel, date=n_date)
|
|
|
|
+ # send_text = '{msg_type} 通道:{channel} 日期:{date}'.format(msg_type=msg_type, channel=channel, date=n_date)
|
|
else:
|
|
else:
|
|
if etype == 704:
|
|
if etype == 704:
|
|
msg_type = 'Low battery'
|
|
msg_type = 'Low battery'
|