seven 3 日 前
コミット
e5f20f15a6
1 ファイル変更4 行追加5 行削除
  1. 4 5
      app/Http/Controllers/api/TelegramWebHook.php

+ 4 - 5
app/Http/Controllers/api/TelegramWebHook.php

@@ -16,7 +16,8 @@ use App\Services\TopUpService;
 use App\Services\TutorialService;
 use App\Services\UserService;
 use App\Services\WalletService;
-use App\Services\WithdrawService;
+use App\Services\WithdrawService;   
+use App\Services\BalanceLogService;   
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\Cache;
 use Illuminate\Support\Facades\DB;
@@ -167,10 +168,8 @@ class TelegramWebHook extends Controller
                         break;
                     case "今日流水":
                         Util::delCache($chatId);
-                        $this->telegram->sendMessage([
-                            'chat_id' => $chatId,
-                            'text' => $text
-                        ]);
+                        $result = BalanceLogService::getTodayFlowing($chatId);
+                        $this->telegram->sendMessage($result);
                         break;
                     case "联系客服":
                         Util::delCache($chatId);