Sfoglia il codice sorgente

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

兔姬桑 4 anni fa
parent
commit
0bf4e55336

+ 1 - 1
app/Http/Controllers/PaymentController.php

@@ -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' => '订单创建失败:系统并未开启在线支付功能']);
                 }
 

BIN
public/assets/images/help/作者要饭求放过.PNG


+ 20 - 0
resources/views/user/components/payment/manual.blade.php

@@ -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">