Эх сурвалжийг харах

Merge branch 'master' of http://47.76.126.2:3000/seven/bot-28

Ken 6 өдөр өмнө
parent
commit
bcc0ad9b49

+ 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";