chore: src/app 目录与华为云第一台服务器上的代码做第一次比较合并
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user