Closed suxiyun closed 2 years ago
在config.php文件里的支付配置截取发出来看看
'epay' => [ 'name' => '易支付', 'min' => '10', 'max' => '1000', 'visible_range' => false, // 限制支付方式的可见范围 'visible_min_range' => '', // 此支付方式可见最小用户id(含) 'visible_max_range' => '', // 可见最大用户id(含) 'gateway' => 'http://text.xiyun.co/', 'uid' => '1000', 'key' => 'oD06fC6L6J3cC3qD3Il07FgmqD7yO43Q', 'enable' => true,
co/改成co试试,还是不行先开debug,然后浏览器控制台看报错
取消/ 再测试还是不行 控制台提示 Failed to load resource: the server responded with a status of 500 (Internal Server Error) 请求在网络面板中不可用,请重新加载已检查的页面 同时我刷新了一下 支付页面的网页 出现这个网页 HTTP ERROR 502 http://www.xiyun.co/user/order/87d466248379 无法请求的 页面
jquery-3.6.0.min.js:2
PUT http://www.xiyun.co/user/order 500 (Internal Server Error) send @ jquery-3.6.0.min.js:2 ajax @ jquery-3.6.0.min.js:2 (匿名) @ 0d1043606ce5:529 dispatch @ jquery-3.6.0.min.js:2 v.handle @ jquery-3.6.0.min.js:2
截图,看具体的网络请求的响应
点图2的响应
点图2的响应 是的 我找到原因了 我自己添加了个 支付 在vendor/composer/autoload_static.php文件中添加了 'App\Services\Gateway\WellPay' => DIR . '/../..' . '/src/Services/Gateway/WellPay.php', 并在Gateway目录下上传了 WellPay.php 我把'App\Services\Gateway\WellPay' => DIR . '/../..' . '/src/Services/Gateway/WellPay.php',这里删除,其他的支付就可以使用了
但是这个支付我要怎么添加进去呢? 可以教我?
加了新的支付文件执行 composer update 就可以用了
加了新的支付文件执行 composer update 就可以用了
执行之后似乎也是不能用 提示{"error":{"type":"Error","message":"Class 'App\Services\Gateway\AbstractPayment' not found","file":"\/www\/wwwroot\/xiyun\/src\/Services\/Gateway\/WellPay.php","line":10}} 似乎这个支付插件的问题,它支持原版的uim... 或许我应该 在改一下,感谢您的回复 生活愉快~!
文件的完整内容贴一下,我做一下兼容
https://github.com/Anankke/SSPanel-Uim/commit/ee26f05b74d08b197d5ed2b1a6b5fad4160b17f9
需要在网站根目录执行 composer update
,你那样改文件的方法不方便
F12错误码 :Failed to load resource: the server responded with a status of 500 (Internal Server Error) 另外能不能把验证码功能打开 辛苦了