blog data
This commit is contained in:
@@ -112,7 +112,22 @@ class WrenchResources extends BaseController
|
||||
|
||||
private function getBlogData()
|
||||
{
|
||||
return (new \App\Models\BlogDataModel())->blogData(100);
|
||||
$blog_id = 0;
|
||||
$endpoint = "WRENCH_BLOG_DATA";
|
||||
$res1 = $this->getCache($endpoint);
|
||||
if (count($res1)==0){
|
||||
$rawData = $this->apiData($blog_id);
|
||||
$res1= $rawData['payload']; //[0]['payload'];
|
||||
$this->saveCache($endpoint,$res1);
|
||||
}
|
||||
$res1['blogconfig'] = [
|
||||
"media_url" => "https://blog.wrenchboard.com/wp-content/uploads",
|
||||
"image_url" => "https://blog.wrenchboard.com/wp-content/uploads",
|
||||
"site_url" => "https://blog.wrenchboard.com",
|
||||
"other_config2" => "NONE",
|
||||
];
|
||||
return $res1;
|
||||
//return (new \App\Models\BlogDataModel())->blogData(100);
|
||||
}
|
||||
|
||||
//************************
|
||||
|
||||
Reference in New Issue
Block a user