|
|
@@ -474,6 +474,21 @@ class WithdrawService
|
|
|
]];
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ //输入钱宝提现金额
|
|
|
+ static function inputQbAmount($chatId, $amount, $messageId)
|
|
|
+ {
|
|
|
+ if (!preg_match('/^-?\d+(\.\d+)?$/', $amount)) {
|
|
|
+ return [
|
|
|
+ 'chat_id' => $chatId,
|
|
|
+ 'text' => "金额输入不正确,请发送提现数字",
|
|
|
+ 'reply_to_message_id' => $messageId
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ $wallet = Wallet::where('member_id', $chatId)->first();
|
|
|
+ $temp = floatval($wallet->available_balance);
|
|
|
+ }
|
|
|
+
|
|
|
//钱宝提现
|
|
|
static function qbApply($chatId, $messageId)
|
|
|
{
|
|
|
@@ -500,6 +515,9 @@ class WithdrawService
|
|
|
$temp = floatval($wallet->available_balance);
|
|
|
$text = "请发送提现金额\n";
|
|
|
$text .= "💰 当前余额{$temp} RMB\n";
|
|
|
+
|
|
|
+
|
|
|
+ Cache::put(get_step_key($chatId), StepStatus::INPUT_WITHDRAW_QB_MONEY);
|
|
|
return [
|
|
|
'chat_id' => $chatId,
|
|
|
'text' => $text,
|