Ken hace 2 meses
padre
commit
7751abdc16

+ 1 - 1
app/Http/Controllers/api/TelegramWebHook.php

@@ -902,7 +902,7 @@ class TelegramWebHook extends Controller
                 //钱宝提现
                 if ($data === 'withdraw@@qbApply') {
                     $res = WithdrawService::qbApply($chatId, $messageId);
-                    if (isset($res['message_id'])) $telegram->editMessageText($res); else $telegram->sendMessage($res);
+                    $telegram->editMessageText($res);
 
                 }
 

+ 2 - 1
app/Services/WithdrawService.php

@@ -479,7 +479,8 @@ class WithdrawService
     {
         $three_payment_switch = Config::where('field', 'three_payment_switch')->first()->val;
         if ($three_payment_switch != 1) {
-            return WalletService::getBalance($chatId);
+            $res = WalletService::getBalance($chatId);
+            $res['message_id'] = $messageId;
         }
 //
         return [