From 6efffdfa4f9b1993e868d20eebd3f729a8694fa0 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 16 Nov 2022 00:47:04 +0800 Subject: [PATCH] Update site_api.py --- class/core/site_api.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/class/core/site_api.py b/class/core/site_api.py index 148ab5d13..7915c9907 100755 --- a/class/core/site_api.py +++ b/class/core/site_api.py @@ -676,6 +676,12 @@ class site_api: msg = data['msg'] if type(data['msg']) != str: msg = data['msg'][0] + + '

响应状态:' + \ + data['msg'][1]['challenges'][0]['error']['status'] + '

' + + '

错误类型:' + \ + data['msg'][1]['challenges'][0]['error']['type'] + '

' + + '

错误代码:' + \ + data['msg'][1]['challenges'][0]['error']['detail'] + '

' return mw.returnJson(data['status'], msg, data['msg']) src_letpath = mw.getServerDir() + '/web_conf/letsencrypt/' + siteName