|
@@ -129,12 +129,20 @@ class VoicePromptView(View):
|
|
|
'voice_mute': 0
|
|
|
}
|
|
|
if channel_qs.exists():
|
|
|
- channel_qs = channel_qs.values('voice_prompt_enter', 'voice_prompt_leave', 'voice_prompt_status', 'voice_prompt_intelligent_mute')
|
|
|
+ channel_qs = channel_qs.values('voice_prompt_enter', 'voice_prompt_leave', 'voice_prompt_status',
|
|
|
+ 'voice_prompt_intelligent_mute', 'voice_start_x', 'voice_start_y',
|
|
|
+ 'voice_end_x', 'voice_end_y', 'voice_start_time', 'voice_end_time')
|
|
|
print(channel_qs)
|
|
|
res['enter_voice'] = channel_qs[0]['voice_prompt_enter']
|
|
|
res['leave_voice'] = channel_qs[0]['voice_prompt_leave']
|
|
|
res['voice_status'] = channel_qs[0]['voice_prompt_status']
|
|
|
res['voice_mute'] = channel_qs[0]['voice_prompt_intelligent_mute']
|
|
|
+ res['start_x'] = channel_qs[0]['voice_start_x']
|
|
|
+ res['start_y'] = channel_qs[0]['voice_start_y']
|
|
|
+ res['end_x'] = channel_qs[0]['voice_end_x']
|
|
|
+ res['end_y'] = channel_qs[0]['voice_end_y']
|
|
|
+ res['start_time'] = channel_qs[0]['voice_start_time']
|
|
|
+ res['end_time'] = channel_qs[0]['voice_end_time']
|
|
|
|
|
|
enter_systems = []
|
|
|
leave_systems = []
|
|
@@ -163,9 +171,6 @@ class VoicePromptView(View):
|
|
|
if res['leave_voice'] == system['id']:
|
|
|
res['leave_voice'] = system
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
if voice_qs.exists():
|
|
|
voice_qs = voice_qs.values('id', 'title', 'filename', 'type')
|
|
|
|