chore: src/app 目录与华为云第一台服务器上的代码做第一次比较合并

This commit is contained in:
2025-11-22 15:00:41 +08:00
parent c1170aafa8
commit f03dbbfc60
53 changed files with 3726 additions and 1228 deletions

View File

@@ -66,11 +66,11 @@ class Document extends BaseModel
public function getDocument($condition)
{
// $json_condition = json_encode($condition);
// $cache = Cache::get("document_" . $json_condition, "");
// if (!empty($cache)) {
// return $this->success($cache);
// }
$json_condition = json_encode($condition);
$cache = Cache::get("document_" . $json_condition, "");
if (!empty($cache)) {
return $this->success($cache);
}
$check_condition = array_column($condition, 2, 0);
$site_id = $check_condition['site_id'] ?? '';
if ($site_id === '') {
@@ -98,7 +98,7 @@ class Document extends BaseModel
'modify_time' => 0
];
}
// Cache::tag("document")->set("document_" . $json_condition, $info);
Cache::tag("document")->set("document_" . $json_condition, $info);
return $this->success($info);
}