147 lines
3.1 KiB
HTML
147 lines
3.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-cn">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title><%= title %></title>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 24px;
|
|
background: #f5f7fb;
|
|
color: #1f2937;
|
|
font-family: "Microsoft YaHei", sans-serif;
|
|
}
|
|
|
|
.card {
|
|
max-width: 760px;
|
|
margin: 0 auto;
|
|
background: #ffffff;
|
|
border-radius: 12px;
|
|
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.header {
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.header h1 {
|
|
margin: 0;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.summary {
|
|
margin: 16px 24px 0;
|
|
padding: 16px;
|
|
border-radius: 10px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.summary.success {
|
|
background: #ecfdf3;
|
|
color: #027a48;
|
|
}
|
|
|
|
.summary.warning {
|
|
background: #fffaeb;
|
|
color: #b54708;
|
|
}
|
|
|
|
.summary.error {
|
|
background: #fef3f2;
|
|
color: #b42318;
|
|
}
|
|
|
|
.content {
|
|
padding: 24px;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
padding: 12px 10px;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
word-break: break-all;
|
|
}
|
|
|
|
th {
|
|
width: 220px;
|
|
color: #475467;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.muted {
|
|
color: #667085;
|
|
font-size: 13px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="card">
|
|
<div class="header">
|
|
<h1><%= title %></h1>
|
|
<div class="muted">用于人工核对平台授权回调参数与预授权码处理状态</div>
|
|
</div>
|
|
|
|
<div class="summary <%= resultLevel %>">
|
|
综合结果:<%= resultText %>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<th>平台返回 code</th>
|
|
<td><%= code || '-' %></td>
|
|
</tr>
|
|
<tr>
|
|
<th>平台返回 state</th>
|
|
<td><%= state || '-' %></td>
|
|
</tr>
|
|
<tr>
|
|
<th>去前缀后的 state</th>
|
|
<td><%= normalizedState || '-' %></td>
|
|
</tr>
|
|
<tr>
|
|
<th>解析出的 platform_code</th>
|
|
<td><%= platformCode || '-' %></td>
|
|
</tr>
|
|
<tr>
|
|
<th>解析出的 auth_random_code</th>
|
|
<td><%= authRandomCode || '-' %></td>
|
|
</tr>
|
|
<tr>
|
|
<th>是否找到预授权码记录</th>
|
|
<td><%= hasShop ? '是' : '否' %></td>
|
|
</tr>
|
|
<tr>
|
|
<th>预授权码是否已处理</th>
|
|
<td><%= isProcessedText %></td>
|
|
</tr>
|
|
<tr>
|
|
<th>平台是否正确</th>
|
|
<td><%= isPlatformMatchedText %></td>
|
|
</tr>
|
|
<tr>
|
|
<th>记录中的 platform_code</th>
|
|
<td><%= shopPlatformCode || '-' %></td>
|
|
</tr>
|
|
<tr>
|
|
<th>记录中的 status</th>
|
|
<td><%= shopStatus === null ? '-' : shopStatus %></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |