Ken 2 долоо хоног өмнө
parent
commit
c9577a9db1

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

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