|
...
|
...
|
@@ -216,8 +216,9 @@ class KeywordVideoController extends BaseController |
|
|
|
'accept: application/json'
|
|
|
|
];
|
|
|
|
$data = http_get($url,$header);
|
|
|
|
if(!empty($data['data'])){
|
|
|
|
Cache::put('template_data',$data['data'],12 * 3600);
|
|
|
|
if(!empty($data['data']) && $data['code'] == 200){
|
|
|
|
$data = $data['data'];
|
|
|
|
Cache::put('template_data',$data,12 * 3600);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
...
|
...
|
|