Ver Fonte

wesmiler

wesmiler há 5 anos atrás
pai
commit
23ca172508
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      app/Controller/IndexController.php

+ 3 - 3
app/Controller/IndexController.php

@@ -10,13 +10,13 @@ declare(strict_types=1);
  * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
  * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
  */
  */
 namespace App\Controller;
 namespace App\Controller;
+use App\Controller\Resource\ApiResource;
+
 class IndexController extends AbstractController
 class IndexController extends AbstractController
 {
 {
 
 
     public function index()
     public function index()
     {
     {
-        $page = "<title>主页</title><meta charset='utf-8' style='font-size: 18px; line-height: 240px; width: 100%; text-align: center;'><div id='home'>欢迎访问,HCBET注单平台!</div>";
-        echo $page;
-        exit;
+        return ApiResource::success(1013);
     }
     }
 }
 }