|
|
@@ -234,9 +234,6 @@ class IssueService extends BaseService
|
|
|
$awards = self::award(explode(',',$winning_numbers));
|
|
|
DB::beginTransaction();
|
|
|
try {
|
|
|
- if(empty($recordImage)){
|
|
|
- $recordImage = self::lotteryImage($info->issue_no);
|
|
|
- }
|
|
|
$info->status = self::model()::STATUS_DRAW;
|
|
|
$info->winning_numbers = $winning_numbers;
|
|
|
$info->combo = $combo;
|
|
|
@@ -261,7 +258,7 @@ class IssueService extends BaseService
|
|
|
}
|
|
|
self::bettingGroupNotice($text, $buttons, $image);
|
|
|
}
|
|
|
-
|
|
|
+ $recordImage = self::lotteryImage($info->issue_no);
|
|
|
if($recordImage){
|
|
|
self::bettingGroupNotice('', [], url($recordImage));
|
|
|
}
|
|
|
@@ -783,7 +780,7 @@ class IssueService extends BaseService
|
|
|
$service = new LotteryImageService();
|
|
|
$url = $service->generate($records);
|
|
|
|
|
|
- // self::model()::where('issue_no', $issue_no)->update(['image' => $url]);
|
|
|
+ self::model()::where('issue_no', $issue_no)->update(['image' => $url]);
|
|
|
return $url;
|
|
|
|
|
|
}
|