兼容修改

This commit is contained in:
张松
2025-08-15 15:28:50 +08:00
parent c37b119bfe
commit bd97e58274

View File

@@ -26,14 +26,14 @@ class WuYouPayUtils
} }
$booted = true; $booted = true;
self::$mchId = '100360'; self::$mchId = config('wuyou.merchant_id', '');
self::$payUrl = 'http://47.113.117.120/api/order'; self::$payUrl = config('wuyou.url', '');
self::$notifyUrl = 'https://ph.hnsiyao.cn/api/wuyou/notify'; self::$notifyUrl = config('wuyou.notify_url', '');
self::$h5BaseUrl = 'https://ph.hnsiyao.cn/api/wuyou/notify'; self::$h5BaseUrl = config('wuyou.h5_base_url', '');
self::$secret = '3MWSBmyKDeQDLXzoLr53tKVqiJv4Fm0KdsEhbpXW9YWvh35VgozL5S3rpUz4EjSb'; self::$secret = config('wuyou.secret', '');
self::$extractUrl = 'http://47.113.117.120/api/salary'; self::$extractUrl = config('wuyou.extract_url', '');
self::$extractNotifyUrl = 'http://47.113.117.120/api/salary'; self::$extractNotifyUrl = config('wuyou.extract_notify_url', '');
self::$queryUrl = 'http://47.113.117.120/api/queryOrder'; self::$queryUrl = config('wuyou.query_url', '');
if (hasEmpty(self::$mchId, self::$payUrl, self::$notifyUrl, self::$h5BaseUrl, self::$secret)) { if (hasEmpty(self::$mchId, self::$payUrl, self::$notifyUrl, self::$h5BaseUrl, self::$secret)) {
throw new SysException('缺少必要参数'); throw new SysException('缺少必要参数');