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

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

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