Ken hai 1 semana
pai
achega
af0ba949b0
Modificáronse 1 ficheiros con 0 adicións e 23 borrados
  1. 0 23
      app/Services/WithdrawService.php

+ 0 - 23
app/Services/WithdrawService.php

@@ -329,29 +329,6 @@ class WithdrawService
         ];
     }
 
-    //设置提现地址
-    public function setAddress($chatId, $address)
-    {
-        $address = trim($address);
-        if (!$address) return [['chat_id' => $chatId, 'text' => lang("提现地址不能为空")]];
-        $user = User::where('member_id', $chatId)->first();
-        $user->usdt = $address;
-        $user->save();
-        $wallet = Wallet::where('member_id', $chatId)->first();
-        $temp = floatval($wallet->available_balance);
-
-        $rate = Config::where('field', 'exchange_rate_rmb')->first()->val ?? 1;
-        $exchange_rate_difference = Config::where('field', 'exchange_rate_difference')->first()->val ?? 0;
-        $rate = bcadd($rate, $exchange_rate_difference, 2);
-        $amount = bcdiv($temp, $rate, 2);
-        $text = "✅ " . lang('提现地址已设置') . "\n\n";
-        $text .= lang("请发送提现金额") . "(USDT) \n";
-        $text .= "💰 " . lang("当前余额") . ":{$temp} RMB  ({$amount} USDT)\n";
-        $text .= "⚠️ " . lang('提现将收取') . "{$this->serviceCharge}" . lang("U作为手续费") . "\n";
-        return [['chat_id' => $chatId, 'text' => $text]];
-    }
-
-
     public static function done($chatId, $messageId, $firstName)
     {
         $serviceCharge = (new WithdrawService())->serviceCharge;