更新后端

This commit is contained in:
云泽网
2025-05-19 00:46:05 +08:00
parent 4c6f7277b0
commit 11fe0b4357
28 changed files with 4644 additions and 134 deletions
+16
View File
@@ -445,4 +445,20 @@ class Resources extends Base
return View::fetch();
}
//统计资源数量
public function counts() {
$total = Db::table('yz_resources')
->where('delete_time', null)
->where('status', '<>', 3)
->count();
return json([
'code' => 0,
'msg' => '获取成功',
'data' => [
'total' => $total
]
]);
}
}