laowu hai 2 días
pai
achega
62981dac8a

+ 9 - 2
app/Http/Controllers/Admin/RechargeController.php

@@ -410,7 +410,11 @@ class RechargeController extends Controller
                     1 => 'cashapp',
                     2 => 'paypal',
                     4 => 'applepay',
-                    8 => 'googlepay'
+                    8 => 'googlepay',
+                    16 => 'btcpay',
+                    32 => 'eth',
+                    1024 => 'usdt',
+                    2048 => 'usdc',
                 ]
             ]);
         }
@@ -1144,10 +1148,13 @@ class RechargeController extends Controller
                 4 => 'applepay',
                 8 => 'googlepay',
                 16 => 'btcpay',
+                32 => 'eth',
                 64 => 'usdt-trc20',
                 128 => 'usdt-erc20',
                 256 => 'usdc-trc20',
-                512 => 'usdc-erc20'
+                512 => 'usdc-erc20',
+                1024 => 'usdt',
+                2048 => 'usdc',
             ];
             
             foreach ($payMethodsMap as $value => $name) {

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

@@ -76,6 +76,19 @@
                                         <input class="form-check-input" type="checkbox" name="pay_methods[]" id="usdc-erc20" value="512" {{ (($info->pay_methods ?? 0) & 512) ? 'checked' : '' }}>
                                         <label class="form-check-label" for="usdc-erc20">USDC-ERC20</label>
                                     </div>
+                                    <br><br>
+                                    <div class="form-check form-check-inline">
+                                        <input class="form-check-input" type="checkbox" name="pay_methods[]" id="eth" value="32" {{ (($info->pay_methods ?? 0) & 32) ? 'checked' : '' }}>
+                                        <label class="form-check-label" for="eth">ETH</label>
+                                    </div>
+                                    <div class="form-check form-check-inline">
+                                        <input class="form-check-input" type="checkbox" name="pay_methods[]" id="usdt" value="1024" {{ (($info->pay_methods ?? 0) & 1024) ? 'checked' : '' }}>
+                                        <label class="form-check-label" for="usdt">USDT</label>
+                                    </div>
+                                    <div class="form-check form-check-inline">
+                                        <input class="form-check-input" type="checkbox" name="pay_methods[]" id="usdc" value="2048" {{ (($info->pay_methods ?? 0) & 2048) ? 'checked' : '' }}>
+                                        <label class="form-check-label" for="usdc">USDC</label>
+                                    </div>
                                 </div>
 
                                 <button type="button" onclick="commit({{$info->id}})" class="btn btn-sm btn-gradient-primary btn-icon-text">