引入 use think\Cache; 根据KEY获取数据 Cache::get($cache_key); 设置缓存 Cache::set($cache_key, $jsonData, 600); 600位缓存的时间有效期