|
|
@@ -466,27 +466,14 @@ class WithdrawService
|
|
|
'reply_to_message_id' => $messageId
|
|
|
]];
|
|
|
}
|
|
|
- $rate = Config::where('field', 'exchange_rate_rmb')->first()->val ?? 1;
|
|
|
-
|
|
|
- $amountRmb = bcmul($rate, $amount, 2);
|
|
|
-
|
|
|
- if ($amountRmb < 100) {
|
|
|
+ if ($amount < 20) {
|
|
|
return [[
|
|
|
'chat_id' => $chatId,
|
|
|
- 'text' => lang("提现不能少于100 RMB,请重试"),
|
|
|
+ 'text' => lang("提现不能少于20 USDT,请重试"),
|
|
|
'reply_to_message_id' => $messageId
|
|
|
]];
|
|
|
}
|
|
|
|
|
|
- if ($amountRmb > 49999) {
|
|
|
- return [
|
|
|
- 'chat_id' => $chatId,
|
|
|
- 'text' => lang("最多提现 49999 RMB,请重试"),
|
|
|
- 'reply_to_message_id' => $messageId
|
|
|
- ];
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
$wallet = Wallet::where('member_id', $chatId)->first();
|
|
|
$temp = floatval($wallet->available_balance);
|
|
|
// 汇率
|