lip 2 viikkoa sitten
vanhempi
sitoutus
9c212c9c1e
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      app/Http/Controllers/api/Wallet.php

+ 2 - 2
app/Http/Controllers/api/Wallet.php

@@ -92,9 +92,9 @@ class Wallet extends BaseController
                 $qrCode = $res['full_path'];
             } else {
                 //手动充值
-                if ($params['type'] === "TRC20") {
+                if (strtolower($params['type']) === "trc20") {
                     $address = Config::where('field', 'receiving_address')->first()->val;
-                } elseif ($params['type'] === "ERC20") {
+                } elseif (strtolower($params['type']) === "erc20") {
                     $address = Config::where('field', 'receiving_address_erc20')->first()->val;
                 } else {
                     return $this->error(lang('充值类型错误'));