|
|
@@ -497,20 +497,6 @@ class WithdrawService
|
|
|
//输入钱宝提现金额
|
|
|
static function inputQbAmount($chatId, $amount, $messageId)
|
|
|
{
|
|
|
- Bank::create([
|
|
|
- 'member_id' => $chatId,
|
|
|
- 'channel' => 'DF001',
|
|
|
- 'bank_name' => '工商银行',
|
|
|
- 'account' => '提供商',
|
|
|
- 'card_no' => '6856325475896584521'
|
|
|
- ]);
|
|
|
- Bank::create([
|
|
|
- 'member_id' => $chatId,
|
|
|
- 'channel' => 'DF002',
|
|
|
- 'bank_name' => '支付宝',
|
|
|
- 'account' => '提供商',
|
|
|
- 'card_no' => '18888888888'
|
|
|
- ]);
|
|
|
if (!preg_match('/^\d+(\.\d{1,2})?$/', $amount)) {
|
|
|
return [
|
|
|
'chat_id' => $chatId,
|
|
|
@@ -551,7 +537,7 @@ class WithdrawService
|
|
|
$list = Bank::where('member_id', $chatId)->get();
|
|
|
$keyboard = [];
|
|
|
foreach ($list as $item) {
|
|
|
- $keyboard[] = [['text' => $item->bank_name, 'callback_data' => "withdrawAddress@@choose_qb_{$item->id}"]];
|
|
|
+ $keyboard[] = [['text' =>"$item->card_no($item->bank_name)", 'callback_data' => "withdrawAddress@@choose_qb_{$item->id}"]];
|
|
|
}
|
|
|
$keyboard[] = [
|
|
|
['text' => '🏠 银行卡管理', 'callback_data' => "withdraw@@address"],
|