no message

This commit is contained in:
hellcat committed 2025-04-13 18:21:37 +08:00
1 parent 4f79cfe48a
commit fa0f028bae
2 files changed
+14 -6

No files matched your search

+13 -5
View File
@@ -125,11 +125,19 @@ final class Epay extends Base
'ret' => 1,
'msg' => '订单发起成功,正在跳转到支付页面...',
]);
} catch (Exception|GuzzleException) {
return $response->withJson([
'ret' => 0,
'msg' => '请求支付失败',
]);
} catch (Exception|GuzzleException $e) {
if ($user["is_admin"] == 1) {
return $response->withJson([
'ret' => 0,
'msg' => json_encode($e->getMessage()),
]);
} else {
return $response->withJson([
'ret' => 0,
'msg' => '请求支付失败',
]);
}
}
}
+1 -1
View File
@@ -22,7 +22,7 @@ final class VisitorCount
} else {
$sFrom = $_ENV['short_url'] . "/";
$sFrom = "隐藏";
}