seven 6 napja
szülő
commit
f80eefab84
1 módosított fájl, 7 hozzáadás és 1 törlés
  1. 7 1
      app/Services/BetService.php

+ 7 - 1
app/Services/BetService.php

@@ -440,7 +440,13 @@ class BetService extends BaseService
         $text = "历史注单 \n";
 
         foreach ($list as $k => $v) {
-            $phase = $v->profit - $v->amount;
+            if($v->status == self::model()::STATUS_SETTLED){
+                $phase = $v->profit - $v->amount;
+
+            }else{
+                $phase = '待开奖';
+            }
+            
             $text .= "-------------------------------------\n";
             $text .= "期数:{$v->issue_no} \n";
             $text .= "内容:{$v->keywords} \n";