laowu 3 днів тому
батько
коміт
f755bc2690

+ 1 - 0
app/Http/Controllers/Admin/RechargeController.php

@@ -1143,6 +1143,7 @@ class RechargeController extends Controller
                 2 => 'paypal',
                 4 => 'applepay',
                 8 => 'googlepay',
+                16 => 'btcpay',
                 64 => 'usdt-trc20',
                 128 => 'usdt-erc20',
                 256 => 'usdc-trc20',

+ 2 - 1
app/Http/logic/admin/RechargeLogic.php

@@ -138,7 +138,8 @@ class RechargeLogic extends BaseApiLogic
             'usdt-trc20' => 'USDT-TRC20',
             'usdt-erc20' => 'USDT-ERC20',
             'usdc-trc20' => 'USDC-TRC20',
-            'usdc-erc20' => 'USDC-ERC20'
+            'usdc-erc20' => 'USDC-ERC20',
+            'btcpay' => 'BTCPay',
         ];
         
         foreach ($list as &$value) {

+ 1 - 0
app/Http/logic/api/SafePayLogic.php

@@ -27,6 +27,7 @@ class SafePayLogic extends BaseApiLogic
         2  => '1305', // 美国 PayPal
         4  => '1302', // 美国 ApplePay
         8  => '1303', // 美国 GooglePay
+        16 => '1304', // 美国 BTC
     ];
 
     /**

+ 4 - 0
resources/views/admin/recharge/update_config.blade.php

@@ -56,6 +56,10 @@
                                         <label class="form-check-label" for="googlepay">GooglePay</label>
                                     </div>
                                     <br><br>
+                                    <div class="form-check form-check-inline">
+                                        <input class="form-check-input" type="checkbox" name="pay_methods[]" id="btcpay" value="16" {{ (($info->pay_methods ?? 0) & 16) ? 'checked' : '' }}>
+                                        <label class="form-check-label" for="btcpay">btcpay</label>
+                                    </div>
                                     <div class="form-check form-check-inline">
                                         <input class="form-check-input" type="checkbox" name="pay_methods[]" id="usdt-trc20" value="64" {{ (($info->pay_methods ?? 0) & 64) ? 'checked' : '' }}>
                                         <label class="form-check-label" for="usdt-trc20">USDT-TRC20</label>