seven 1 روز پیش
والد
کامیت
855e8fcb3c
1فایلهای تغییر یافته به همراه13 افزوده شده و 9 حذف شده
  1. 13 9
      app/Services/SanJinRechargeService.php

+ 13 - 9
app/Services/SanJinRechargeService.php

@@ -203,29 +203,33 @@ class SanJinRechargeService extends BaseService
     private static function bill($chatId, $firstName, $messageId, $page = 1, $limit = 5)
     {
         $list = PaymentOrder::where('member_id', $chatId)
-            ->where('type', 1)
+            // ->where('type', 1)
             ->orderByDesc('created_at')
             ->forPage($page, $limit)
             ->get();
 
         $count = PaymentOrder::where('member_id', $chatId)
-            ->where('type', 1)
+            // ->where('type', 1)
             ->count();
 
 
-        $text = "👤 {$firstName}({$chatId})    三斤充值记录\n\n";
+        $text = "👤 {$firstName}({$chatId})    第三方订单记录\n\n";
         foreach ($list as $item) {
             $amount = floatval($item->amount);
 
             $amount = $item->type == 2 ? "➖ {$amount}" : "➕ $amount";
             $text .= "-------------------------------------\n";
-            $text .= "{$amount} \n";
+            $text .= "订单类型:".($item->type == 1?"充值":"提现");
+            $text .= "订单金额:{$amount} \n";
             $text .= "订单号:{$item->order_no}\n";
-            $text .= "支付平台:{$item->bank_name}\n";
-
-            // $text .= "银行:{$item->bank_name}\n";
-            // $text .= "姓名:{$item->account}\n";
-            // $text .= "卡号:{$item->card_no}\n";
+            if($item->type == 2){
+                $text .= "银行:{$item->bank_name}\n";
+                $text .= "姓名:{$item->account}\n";
+                $text .= "卡号:{$item->card_no}\n";
+            }else{
+                $text .= "充值类型:{$item->bank_name}\n";
+            }
+          
             $status = ['待处理', '处理中', '成功', '失败'];
             $text .= "状态:{$status[$item->status]}\n";
             if ($item->remark) {