update api getNumberPerson
This commit is contained in:
parent
18ffc9c6f4
commit
86afa3a430
|
@ -18,7 +18,7 @@ class ApiController extends Controller {
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function behaviors() {
|
public function behaviors() {
|
||||||
return [
|
return [
|
||||||
'verbs' => [
|
'verbs' => [
|
||||||
'class' => VerbFilter::className(),
|
'class' => VerbFilter::className(),
|
||||||
|
@ -272,4 +272,8 @@ class ApiController extends Controller {
|
||||||
return $is_conn;
|
return $is_conn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function actionGetNumberPerson() {
|
||||||
|
return ListManagement::find()->count();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -513,16 +513,12 @@ class ListManagementController extends Controller {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function actionGetTotalFeature() {
|
|
||||||
return ListManagement::find()->count();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function actionUpdateFeature() {
|
public function actionUpdateFeature() {
|
||||||
if (Yii::$app->request->isAjax) {
|
if (Yii::$app->request->isAjax) {
|
||||||
Yii::$app->response->format = "json";
|
Yii::$app->response->format = "json";
|
||||||
file_get_contents("http://localhost:2305/update-feature?total=" . ListManagement::find()->count());
|
file_get_contents("http://localhost:2305/update-feature?total=" . ListManagement::find()->count());
|
||||||
return ["status" => true];
|
return ["status" => true];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function actionChooseStaff() {
|
public function actionChooseStaff() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user