增加了手机操作端
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user