Ken 1 ヶ月 前
コミット
7c733d1895
1 ファイル変更2 行追加3 行削除
  1. 2 3
      app/Services/QianBaoWithdrawService.php

+ 2 - 3
app/Services/QianBaoWithdrawService.php

@@ -112,10 +112,9 @@ class QianBaoWithdrawService
         $text = "👤 {$firstName}({$chatId})    钱宝提现记录\n\n";
         foreach ($list as $item) {
             $amount = floatval($item->amount);
-            $amount = $amount < 0 ? ("➖ " . ($amount * -1)) : "➕ $amount";
-            $text .= "-------------------------------------\n";
-
 
+            $amount = $item->type == 2 ? "➖ {$amount}" : "➕ $amount";
+            $text .= "-------------------------------------\n";
             $text .= "{$amount} \n";
             $text .= "订单号:{$item->order_no}\n";