|
|
@@ -155,8 +155,10 @@ class WDPay
|
|
|
// WDPay使用 application/x-www-form-urlencoded 格式
|
|
|
$data = http_build_query($payload);
|
|
|
|
|
|
+ $requestUa = request()->userAgent() ?: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36';
|
|
|
$headers = [
|
|
|
'Content-Type: application/x-www-form-urlencoded; charset=UTF-8',
|
|
|
+ 'User-Agent: ' . $requestUa,
|
|
|
];
|
|
|
|
|
|
$ch = curl_init();
|