seven 3 일 전
부모
커밋
f5f79bbb30
2개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      app/Services/TopUpService.php
  2. 8 0
      app/Services/WalletService.php

+ 2 - 1
app/Services/TopUpService.php

@@ -180,7 +180,8 @@ class TopUpService
     public function scan($chatId, $messageId)
     {
 
-        $receivingType = Config::where('field', 'receiving_type')->first()->val;
+        // $receivingType = Config::where('field', 'receiving_type')->first()->val;
+        $receivingType = 1;
         //自动
         if ($receivingType == 1) {
             $res = WalletService::getRechargeImageAddress($chatId);

+ 8 - 0
app/Services/WalletService.php

@@ -238,9 +238,17 @@ class WalletService extends BaseService
         $text .= "用户名:{$userInfo->first_name} \n";
         $text .= "当前余额:{$selfInfo->available_balance} \n";
 
+        $keyboard = [
+            [
+                ['text' => '➕充值', 'callback_data' => "topup@@topup"],
+                ['text' => '🧾账单', 'callback_data' => "topup@@bill"],
+            ]
+        ];
+
         return [
             'chat_id' => $memberId,
             'text' => $text,
+            'reply_markup' => json_encode(['inline_keyboard' => $keyboard]),
             'protect_content' => true
         ];
     }