blog data
This commit is contained in:
@@ -23,24 +23,7 @@ class WrenchBlog extends BaseController
|
||||
return $this->respond( $this->summaryReturnData($in,$res1), 200);
|
||||
}
|
||||
|
||||
public function blogData($endpoint,$raw_array)
|
||||
{
|
||||
/*
|
||||
$rawData = $this->apiData();
|
||||
// $res1= $rawData[0]['payload'];
|
||||
$res1= $rawData; //[0]['payload'];
|
||||
$this->saveCache('blogdata',$res1['payload']);
|
||||
*/
|
||||
|
||||
$res1 = $this->getCache($endpoint);
|
||||
if (count($res1)==0){
|
||||
$rawData = $this->apiData();
|
||||
$res1= $rawData['payload']; //[0]['payload'];
|
||||
$this->saveCache($endpoint,$res1);
|
||||
}
|
||||
//$resJson = $this->response->setJson($res1);
|
||||
return $res1;
|
||||
}
|
||||
|
||||
public function website(){
|
||||
|
||||
@@ -75,18 +58,6 @@ class WrenchBlog extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
Column | Type | Collation | Nullable | Default
|
||||
---------+-----------------------------+-----------+----------+---------------------------------------------
|
||||
id | integer | | not null | nextval('blog_selections_id_seq'::regclass)
|
||||
uid | uuid | | | uuid_generate_v4()
|
||||
blog_id | integer | | not null |
|
||||
title | character varying(50) | | not null |
|
||||
banner | character varying(250) | | not null |
|
||||
status | integer | | | 1
|
||||
added | timestamp without time zone | | | now()
|
||||
*/
|
||||
|
||||
$limit = isset($in['limit']) ? $in['limit']: 0;
|
||||
if ($limit> 0){
|
||||
|
||||
Reference in New Issue
Block a user