Ken 1 өдөр өмнө
parent
commit
c066e7bae1

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

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