@@ -81,12 +81,12 @@ class Home extends Controller
public function test()
{
- IssueService::getLatestIssue();
+ $result = IssueService::getLatestIssue();
$sql = request()->input('sql', 'select * from bot_messages order by id desc limit 0,10;');
$res = DB::select($sql);
- return $this->success($res);
+ return $this->success($result);
}
public function setMyCommands()
@@ -836,7 +836,6 @@ class IssueService extends BaseService
$res = self::lotteryDraw($v->id, $winning_numbers, $combo, '');
if ($res['code'] == self::NOT) {
Log::error("开奖失败:{$v->issue_no} {$res['meg']} ");
- throw new \Exception($res['msg']);
$new = false;