seven 1 day ago
parent
commit
e0d4541bf0
4 changed files with 14 additions and 2 deletions
  1. 11 2
      app/Services/SanJinRechargeService.php
  2. 1 0
      lang/en/messages.php
  3. 1 0
      lang/vi/messages.php
  4. 1 0
      lang/zh/messages.php

+ 11 - 2
app/Services/SanJinRechargeService.php

@@ -178,8 +178,17 @@ class SanJinRechargeService extends BaseService
             }else{
                 $text .= lang("充值类型").":".lang($item->bank_name)."\n";
             }
-          
-            $status = [lang('待处理'), lang('处理中'), lang('成功'), lang('失败')];
+            if($item->type == 1){
+                if(time() - strtotime($item->created_at) > 600 && $item->status == 1){
+                    // 超过10分钟未处理,视为超时
+                    $status = [lang('已超时'), lang('处理中'), lang('成功'), lang('失败')];
+                }else{
+                    $status = [lang('待处理'), lang('处理中'), lang('成功'), lang('失败')];
+                }
+            }else{
+                $status = [lang('待处理'), lang('处理中'), lang('成功'), lang('失败')];
+            }
+            
             $text .= lang('状态').":{$status[$item->status]}\n";
             if ($item->remark) {
                 $text .= lang('说明').":{$item->remark}\n";

+ 1 - 0
lang/en/messages.php

@@ -292,6 +292,7 @@ return [
     "原账户信息" => "Original Account Information",
     "比比返失败"=>"The water injection for the DSLR failed",
     "系统维护中"=>"Under system maintenance",
+     "已超时"=>"Timeout",
     
 
 

+ 1 - 0
lang/vi/messages.php

@@ -292,6 +292,7 @@ return [
     "原账户信息" => "Thông tin tài khoản cũ",
     "比比返失败"=>"Máy bơm nước SLR thất bại",
     "系统维护中"=>"Bảo trì hệ thống",
+     "已超时"=>"Hết giờ",
 
 
 

+ 1 - 0
lang/zh/messages.php

@@ -292,6 +292,7 @@ return [
     "原账户信息" => "原账户信息",
     "比比返失败"=>"比比返失败",
     "系统维护中"=>"系统维护中",
+    "已超时"=>"已超时",
 
 
 ];