new
This commit is contained in:
@@ -168,20 +168,13 @@
|
||||
body: JSON.stringify({ interfaceName, params })
|
||||
});
|
||||
const result = await response.json();
|
||||
|
||||
if (result.success) {
|
||||
resultDiv.innerHTML = `
|
||||
<h2>请求结果:</h2>
|
||||
<p>${result.code}</p>
|
||||
<p>${result.message}</p>
|
||||
<pre>加密返回: ${JSON.stringify(result.encryptedResponse, null, 2)}</pre>
|
||||
<pre>解密返回: ${JSON.stringify(result.decryptedResponse, null, 2)}</pre>
|
||||
`;
|
||||
} else {
|
||||
resultDiv.innerHTML = `
|
||||
<h2>请求失败:</h2>
|
||||
<p>${result.message}</p>
|
||||
<p>${result.error}</p>
|
||||
`;
|
||||
}
|
||||
} catch (error) {
|
||||
resultDiv.innerText = '请求失败: ' + error;
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user