|
@@ -29,7 +29,7 @@ use app\api\lists\service\ServiceLists;
|
|
|
class ServiceController extends BaseApiController
|
|
class ServiceController extends BaseApiController
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
- public array $notNeedLogin = ['getServiceList','getAreaList','getCateList','getServiceInfo'];
|
|
|
|
|
|
|
+ public array $notNeedLogin = ['getServiceList','getAreaList','getCateList','getServiceInfo','autoUpdateStatus'];
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -145,4 +145,9 @@ class ServiceController extends BaseApiController
|
|
|
return $this->fail('请求方式错误');
|
|
return $this->fail('请求方式错误');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ public function autoUpdateStatus(){
|
|
|
|
|
+ $result = ServiceLogic::updateServiceStatus();
|
|
|
|
|
+ return $this->success($result, [], 1, 1);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|