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()