|
@@ -153,6 +153,13 @@
|
|
|
<div id="signInStatusResult" class="result" style="display: none;"></div>
|
|
|
</div>
|
|
|
|
|
|
+ <div class="test-section">
|
|
|
+ <h3>签退(9002)测试</h3>
|
|
|
+ <p>测试签退接口(交易9002),验证平台签退与debug信息:</p>
|
|
|
+ <button onclick="testSignOut()">测试签退(9002)</button>
|
|
|
+ <div id="signOutResult" class="result" style="display: none;"></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div class="test-section">
|
|
|
<h3>批量测试</h3>
|
|
|
<p>批量测试所有接口,检查debug信息保留情况:</p>
|
|
@@ -391,6 +398,16 @@
|
|
|
showResult('signInStatusResult', result, '签到状态测试');
|
|
|
}
|
|
|
|
|
|
+ // 测试签退(9002)
|
|
|
+ async function testSignOut() {
|
|
|
+ const requestData = {
|
|
|
+ action: "signout",
|
|
|
+ timestamp: new Date().toISOString()
|
|
|
+ };
|
|
|
+ const result = await callAPI(requestData);
|
|
|
+ showResult('signOutResult', result, '签退(9002)测试');
|
|
|
+ }
|
|
|
+
|
|
|
// 运行所有测试
|
|
|
async function runAllTests() {
|
|
|
const element = document.getElementById('allTestsResult');
|
|
@@ -404,7 +421,8 @@
|
|
|
{ name: '初始化(测试模式)', func: testInitTestMode },
|
|
|
{ name: '健康检查', func: testHealth },
|
|
|
{ name: '统计信息', func: testStats },
|
|
|
- { name: '签到状态', func: testSignInStatus }
|
|
|
+ { name: '签到状态', func: testSignInStatus },
|
|
|
+ { name: '签退(9002)', func: testSignOut }
|
|
|
];
|
|
|
|
|
|
let allResults = `=== 批量测试结果 ===\n`;
|
|
@@ -418,7 +436,8 @@
|
|
|
action: test.name.includes('初始化') ? 'init' :
|
|
|
test.name.includes('健康') ? 'health' :
|
|
|
test.name.includes('统计') ? 'stats' :
|
|
|
- test.name.includes('签到') ? 'signin_status' : 'init',
|
|
|
+ test.name.includes('签到状态') ? 'signin_status' :
|
|
|
+ test.name.includes('签退') ? 'signout' : 'init',
|
|
|
timestamp: new Date().toISOString()
|
|
|
};
|
|
|
|