|
@@ -208,12 +208,12 @@ class VoicePromptView(View):
|
|
|
url = bucket.sign_url('GET', obj, 3600)
|
|
|
system['url'] = url
|
|
|
del system['filename']
|
|
|
- if system['type'] == 1:
|
|
|
+ if system['type'] == 0:
|
|
|
enter_systems.append(system)
|
|
|
if res['enter_voice'] == system['id']:
|
|
|
res['enter_voice'] = system
|
|
|
|
|
|
- elif system['type'] == 2:
|
|
|
+ elif system['type'] == 1:
|
|
|
leave_systems.append(system)
|
|
|
if res['leave_voice'] == system['id']:
|
|
|
res['leave_voice'] = system
|
|
@@ -227,11 +227,11 @@ class VoicePromptView(View):
|
|
|
url = bucket.sign_url('GET', obj, 3600)
|
|
|
voice['url'] = url
|
|
|
del voice['filename']
|
|
|
- if voice['type'] == 1:
|
|
|
+ if voice['type'] == 0:
|
|
|
enter_customs.append(voice)
|
|
|
if res['enter_voice'] == voice['id']:
|
|
|
res['enter_voice'] = voice
|
|
|
- elif voice['type'] == 2:
|
|
|
+ elif voice['type'] == 1:
|
|
|
leave_customs.append(voice)
|
|
|
if res['leave_voice'] == voice['id']:
|
|
|
res['leave_voice'] = voice
|
|
@@ -300,7 +300,7 @@ class VoicePromptView(View):
|
|
|
if not own_perm:
|
|
|
return response.json(404)
|
|
|
|
|
|
- type = request_dict.get('type', 1)
|
|
|
+ type = request_dict.get('type', 0)
|
|
|
page = request_dict.get('page', None)
|
|
|
line = request_dict.get('line', None)
|
|
|
|