Ken пре 2 недеља
родитељ
комит
10145646ef
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Http/Controllers/admin/Issue.php

+ 1 - 1
app/Http/Controllers/admin/Issue.php

@@ -180,7 +180,7 @@ class Issue extends Controller
         $combo = IssueService::getCombo($winArr);
         $ret = IssueService::lotteryDraw($id, $winning_numbers, $combo, "");
         if ($ret['code'] == BaseService::NOT) {
-            return $this->error($ret['code'], $ret['error'] ?: $ret['msg']);
+            return $this->error($ret['code'], isset($ret['error']) ?? $ret['msg']);
         }
         return $this->success([], $ret['msg']);
     }