|
@@ -337,18 +337,24 @@ class QianBaoWithdrawService
|
|
|
//3.选择银行卡号
|
|
//3.选择银行卡号
|
|
|
private static function chooseBank($chatId, $id)
|
|
private static function chooseBank($chatId, $id)
|
|
|
{
|
|
{
|
|
|
- $amount = Cache::get("{$chatId}_WITHDRAW_QB_MONEY", '');
|
|
|
|
|
- if (!$amount) return WalletService::getBalance($chatId);
|
|
|
|
|
|
|
+// $amount = Cache::get("{$chatId}_WITHDRAW_QB_MONEY", '');
|
|
|
|
|
+// if (!$amount) return WalletService::getBalance($chatId);
|
|
|
|
|
|
|
|
- $bank = Bank::where('id', $id)->first();
|
|
|
|
|
- $result = PaymentOrderService::createPayout($chatId, $amount, $bank->channel, $bank->bank_name, $bank->account, $bank->card_no);
|
|
|
|
|
- return $result;
|
|
|
|
|
|
|
+
|
|
|
|
|
+ Cache::put("{$chatId}_QB_BANK_ID", $id);
|
|
|
|
|
+ return [
|
|
|
|
|
+ 'chat_id' => $chatId,
|
|
|
|
|
+ 'text' => "请输入提现的金额",
|
|
|
|
|
+ ];
|
|
|
|
|
+
|
|
|
|
|
+// $bank = Bank::where('id', $id)->first();
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+// $result = PaymentOrderService::createPayout($chatId, $amount, $bank->channel, $bank->bank_name, $bank->account, $bank->card_no);
|
|
|
|
|
+// return $result;
|
|
|
// $text = "提交成功\n";
|
|
// $text = "提交成功\n";
|
|
|
// $text .= "结果将在稍后通知您,请留意通知!!!";
|
|
// $text .= "结果将在稍后通知您,请留意通知!!!";
|
|
|
- // return [
|
|
|
|
|
- // 'chat_id' => $chatId,
|
|
|
|
|
- // 'text' => $text,
|
|
|
|
|
- // ];
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//银行卡管理
|
|
//银行卡管理
|