family resources
This commit is contained in:
@@ -545,10 +545,10 @@ long RecoCheckCoupons( int itm_count, CVars in, CVars &out ){
|
||||
out[vname] = "icon1";
|
||||
|
||||
snprintf(vname, sizeof (vname), "banner_%05d", ic);
|
||||
out[vname] ="banner-coupons.jpg";
|
||||
out[vname] ="https://www.wrenchboard.com/assets/images/apps/banners/banner-coupons.jpg";
|
||||
|
||||
snprintf(vname, sizeof (vname), "banner_location_%05d", ic);
|
||||
out[vname] ="LOCAL";
|
||||
out[vname] ="URL";
|
||||
|
||||
snprintf(vname, sizeof (vname), "link_path_%05d", ic);
|
||||
out[vname] = "my-coupon";
|
||||
|
||||
@@ -118,6 +118,7 @@ $routes->post('/en/wrench/api/v1/familylist', 'WrenchApi::apigate');
|
||||
$routes->post('/en/wrench/api/v1/familywallet', 'WrenchApi::apigate');
|
||||
|
||||
|
||||
$routes->post('/en/wrench/api/v1/familyresources', 'WrenchResources::familyresources');
|
||||
$routes->post('/en/wrench/api/v1/familybanners', 'WrenchBanners::apigate'); // class WrenchBanners WrenchApi
|
||||
|
||||
$routes->post('/en/wrench/api/v1/familyrewardhx', 'WrenchApi::apigate');
|
||||
|
||||
@@ -73,6 +73,19 @@ class WrenchResources extends BaseController
|
||||
|
||||
}
|
||||
|
||||
public function familyresources(){
|
||||
|
||||
log_message('critical', "WrenchResources-> " );
|
||||
$res1['tab_categories'] = $this->CategoryData();
|
||||
$res1['ask_categories'] = $this->AskCategoryData();
|
||||
$res1['upload_types'] = $this->uploadTypes();
|
||||
$res1['marketdata'] = $this->MarketData();
|
||||
$res1['productdata'] = $this->ProductData();
|
||||
$res1['collectiondata'] = $this->CollectionData();
|
||||
$res1['blogdata'] = $this->getBlogData();
|
||||
return $this->response->setJson($res1);
|
||||
}
|
||||
|
||||
private function AskCategoryData(){
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user