Fix人工支付开启时购买套餐被错误拒绝

This commit is contained in:
兔姬桑
2021-10-07 20:26:42 +08:00
parent d3d73fea68
commit 0bf4e55336
3 changed files with 21 additions and 1 deletions

View File

@@ -140,7 +140,7 @@ class PaymentController extends Controller
//非余额付款下,检查在线支付是否开启
if (self::$method !== 'credit') {
// 判断是否开启在线支付
if (! sysConfig('is_onlinePay')) {
if (! sysConfig('is_onlinePay') && ! sysConfig('wechat_qrcode') && ! sysConfig('alipay_qrcode')) {
return Response::json(['status' => 'fail', 'message' => '订单创建失败:系统并未开启在线支付功能']);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

View File

@@ -9,10 +9,30 @@
.hide {
display: none;
}
#ad {
position: fixed;
z-index: 9999;
right: 30px;
bottom: 30px;
margin-left: 535px;
}
#ad > button {
position: absolute;
right: 0;
top: 0;
}
</style>
@endsection
@section('content')
<div id="ad">
<button class="btn btn-icon btn-default" type="button" onclick="document.getElementById('ad').style.display = 'none'">
<i class="icon wb-close"></i>
</button>
<img src="{{asset('assets/images/help/作者要饭求放过.PNG')}}" class="w-lg-250 w-150" alt="">
</div>
<div class="page-content container">
<div class="panel panel-bordered">
<div class="panel-heading">