update last_modified time

This commit is contained in:
2021-01-15 15:00:57 +07:00
parent 5472f6ef77
commit cc41875ad2
2 changed files with 3 additions and 1 deletions

View File

@@ -151,7 +151,7 @@ class ApiController extends Controller {
public function actionFullData() {
if (Yii::$app->request->post()) {
Yii::$app->response->format = "json";
$lists = ListManagement::find()->andWhere(["IN", "code", Yii::$app->request->post()])->orderBy(['id' => SORT_DESC])->all();
$lists = ListManagement::find()->andWhere(["IN", "code", Yii::$app->request->post()])->orderBy(['last_modified' => SORT_DESC])->all();
$res = [];
foreach ($lists as $key => $value) {
$f = [];