Ken 2 天之前
父节点
当前提交
b62002db10
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      app/Services/QianBaoWithdrawService.php

+ 4 - 2
app/Services/QianBaoWithdrawService.php

@@ -408,9 +408,11 @@ class QianBaoWithdrawService
             $keyboard[] = [['text' => $item->alias, 'callback_data' => "withdrawAddress@@bank_detail{$item->id}"]];
         }
         if (count($list) < 5) {
-            $keyboard[] = [['text' => "➕ 添加", 'callback_data' => "withdrawAddress@@bank_add"]];
+            $keyboard[] = [['text' => "➕ 添加", 'callback_data' => "withdrawAddress@@bank_add"], ['text' => "↩️返回", 'callback_data' => "topUp@@home"]];
+        } else {
+            $keyboard[] = [['text' => "↩️返回", 'callback_data' => "topUp@@home"]];
         }
-        $keyboard[] = [['text' => "↩️返回", 'callback_data' => "topUp@@home"]];
+
         return [
             'chat_id' => $chatId,
             'text' => $text,