fix: 嵌入脚本
This commit is contained in:
parent
08071b6559
commit
8e8a23da74
@ -127,7 +127,8 @@ class ApplicationSerializer(serializers.Serializer):
|
||||
t = Template(content)
|
||||
s = t.render(
|
||||
Context(
|
||||
{'is_auth': is_auth, 'protocol': 'http', 'host': 'localhost:8000', 'token': '0a8d892c755f1a75',
|
||||
{'is_auth': is_auth, 'protocol': self.data.get('protocol'), 'host': self.data.get('host'),
|
||||
'token': self.data.get('token'),
|
||||
'white_list_str': ",".join(
|
||||
application_access_token.white_list),
|
||||
'white_active': 'true' if application_access_token.white_active else 'false'}))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user