wesmiler 5 лет назад
Родитель
Сommit
23ca172508
1 измененных файлов с 3 добавлено и 3 удалено
  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
  */
 namespace App\Controller;
+use App\Controller\Resource\ApiResource;
+
 class IndexController extends AbstractController
 {
 
     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);
     }
 }