数据缓存处理

This commit is contained in:
2025-12-24 16:21:07 +08:00
parent 0dfccdd617
commit f3e692f3fc
9 changed files with 650 additions and 46 deletions

View File

@@ -74,6 +74,11 @@ class Controller
*/
protected function _initialize()
{
//允许跨域
header("Access-Control-Allow-Origin: *"); // 允许所有域访问
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS");
header("Access-Control-Allow-Headers: Content-Type, Authorization");
header("Access-Control-Max-Age: 3600");
}
/**