增加了手机操作端

This commit is contained in:
wushumin
2026-05-15 14:01:36 +08:00
parent 9aac78b8da
commit dd56e0861b
107 changed files with 23547 additions and 346 deletions

View File

@@ -100,11 +100,14 @@ try {
if ($reportNo !== '') {
$reportDetail = requestJson('GET', $baseUrl . '/api/app/report/detail?report_no=' . rawurlencode($reportNo));
assertOk('app public report detail', $reportDetail);
$isZhongjianReport = ($reportDetail['body']['data']['report_header']['service_provider'] ?? '') === 'zhongjian';
$verifyQr = $reportDetail['body']['data']['verify_info']['verify_qrcode_url'] ?? '';
if ($verifyQr === '') {
if (!$isZhongjianReport && $verifyQr === '') {
throw new RuntimeException('app public report detail missing verify_qrcode_url');
}
assertOk('app public verify', requestJson('GET', $baseUrl . '/api/app/verify?report_no=' . rawurlencode($reportNo)));
if (!$isZhongjianReport) {
assertOk('app public verify', requestJson('GET', $baseUrl . '/api/app/verify?report_no=' . rawurlencode($reportNo)));
}
}
$appLogout = requestJson('POST', $baseUrl . '/api/app/auth/logout', [], $appAuthHeader);