json([ 'ok' => true, 'message' => 'SaaSShop API is alive', 'time' => now()->toDateTimeString(), 'version' => 'v1', ]); } public function platforms(): JsonResponse { return response()->json([ 'ok' => true, 'platforms' => [ ['key' => 'pc', 'name' => 'PC 端', 'status' => 'ready'], ['key' => 'h5', 'name' => 'H5', 'status' => 'ready'], ['key' => 'wechat_mp', 'name' => '微信公众号', 'status' => 'reserved'], ['key' => 'wechat_mini', 'name' => '微信小程序', 'status' => 'reserved'], ['key' => 'app', 'name' => 'APP', 'status' => 'reserved'], ], 'api_prefix' => '/api/v1', ]); } }