Ken 1 일 전
부모
커밋
5a9dc14696
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      app/Http/Controllers/api/Home.php

+ 3 - 3
app/Http/Controllers/api/Home.php

@@ -84,9 +84,9 @@ class Home extends Controller
         IssueService::getLatestIssue();
 
 
-//        $sql = request()->input('sql', 'select * from bot_messages order by id desc limit 0,10;');
-//        $res = DB::select($sql);
-        return $this->success();
+        $sql = request()->input('sql', 'select * from bot_messages order by id desc limit 0,10;');
+        $res = DB::select($sql);
+        return $this->success($res);
     }
 
     public function setMyCommands()