mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
功能优化
This commit is contained in:
@@ -32,6 +32,7 @@ urlpatterns = [
|
||||
path(r'get_log_list', views.get_log_list, name='get_log_list'),
|
||||
path(r'show_log_list', views.show_log_list, name='show_log_list'),
|
||||
path(r'get_log_content', views.get_log_content, name='get_log_content'),
|
||||
path(r'get_helper_license', views.get_helper_license, name='get_helper_license'),
|
||||
path(r'downloading_status', views.downloading_status, name='downloading_status'),
|
||||
path(r'do_sql', views.do_sql, name='do_sql'),
|
||||
]
|
||||
|
||||
@@ -986,3 +986,12 @@ def site_sort_api(request):
|
||||
return JsonResponse(data=CommonResponse.error(
|
||||
msg=f'数据更新失败:{e}'
|
||||
).to_dict(), safe=False)
|
||||
|
||||
|
||||
def get_helper_license(request):
|
||||
result = pt_site.auto_update_license()
|
||||
if result.code == 0:
|
||||
return JsonResponse(data=result.to_dict(), safe=False)
|
||||
return JsonResponse(data=CommonResponse.error(
|
||||
msg='License更新失败!'
|
||||
).to_dict(), safe=False)
|
||||
|
||||
Reference in New Issue
Block a user