Browse Source

停掉v1 api

master
weigang 5 years ago
parent
commit
5aa49ae813
  1. 24
      app/Middleware/Auth/ApiMiddleware.php

24
app/Middleware/Auth/ApiMiddleware.php

@ -45,18 +45,18 @@ class ApiMiddleware implements MiddlewareInterface
{
// 拦截v1路由
// $routePath = $this->request->getPathInfo();
// $routePath = explode('/', $routePath);
// if ($routePath[1] == 'v1') {
// $content = [
// "status" => 'ok',
// "code" => 99999,
// "result" => [],
// "message" => '服务已停止升级,稍后请升级更新小程序(如不能自动更新,请删除小程序后重新进入小程序)'
// ];
//
// return $this->response->json($content);
// }
$routePath = $this->request->getPathInfo();
$routePath = explode('/', $routePath);
if ($routePath[1] == 'v1') {
$content = [
"status" => 'ok',
"code" => 99999,
"result" => [],
"message" => '服务已停止升级,稍后请升级更新小程序(如不能自动更新,请删除小程序后重新进入小程序)'
];
return $this->response->json($content);
}
// 签名校验

Loading…
Cancel
Save