seven hai 2 meses
pai
achega
76e73d7291
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/Services/IssueService.php

+ 2 - 1
app/Services/IssueService.php

@@ -240,6 +240,7 @@ class IssueService extends BaseService
             return ['code'=>self::NOT, 'msg'=>'期号状态不正确'];
         }
 
+        $winArr = array_map('intval',explode(',',$winning_numbers));
         // 计算中奖
         $awards = self::award(explode(',',$winning_numbers));
         DB::beginTransaction();
@@ -254,7 +255,7 @@ class IssueService extends BaseService
             if($replyInfo){
                 $text = $replyInfo->reply;
                 $text .= "\n";
-                $text .= $info->issue_no."期 ".implode('+',explode(',',$winning_numbers))."=".array_sum(explode(',',$winning_numbers))." ".$combo;
+                $text .= $info->issue_no."期 ".implode('+',explode(',',$winning_numbers))."=".array_sum($winArr)." ".$combo;
                 
                 $buttons = json_decode($replyInfo->buttons,true);
                 $image = $replyInfo->image;