Fix unused data

This commit is contained in:
CHIEFSOFT\ameye
2024-10-30 09:38:03 -04:00
parent b67f9646f0
commit 63e0233ed9
2 changed files with 11 additions and 11 deletions
+8 -8
View File
@@ -155,17 +155,17 @@ class WrenchPlayGround extends BaseController
$out["result_list"][] =[
"name" => " There is name 3333",
"banner" => "If any banner is needed ",
"item_list" => $this->apiData()
"item_list" => $this->apiExtraData()
];
$out["result_list"][] =[
"name" => " There is name 3333",
"banner" => "If any banner is needed ",
"item_list" => $this->apiData()
"item_list" => $this->apiExtraData()
];
$out["result_list"][] =[
"name" => " There is name 3333",
"banner" => "If any banner is needed ",
"item_list" => $this->apiData()
"item_list" => $this->apiExtraData()
];
@@ -183,7 +183,7 @@ class WrenchPlayGround extends BaseController
return $in;
}
private function apiFeaturedData() {
private function apiFeaturedData():array{
$data=[];
$data["item"][] = array(
"banner" => "I have no idea",
@@ -212,7 +212,7 @@ class WrenchPlayGround extends BaseController
return $data;
}
private function apiSharedData() {
private function apiSharedData():array {
$data=[];
$total = 0;
for ($i = 0; $i < $total; $i++) {
@@ -225,7 +225,7 @@ class WrenchPlayGround extends BaseController
}
return $data;
}
private function apiCollectionData() {
private function apiCollectionData():array {
$data=[];
$total = 0;
for ($i = 0; $i < $total; $i++) {
@@ -239,8 +239,8 @@ class WrenchPlayGround extends BaseController
return $data;
}
private function apiData() {
private function apiExtraData():array {
$data = [];
$total = rand(1,3);
for ($i = 0; $i < $total; $i++) {
$key = sprintf("%05d", $i);
+3 -3
View File
@@ -103,9 +103,9 @@ class WrenchResources extends BaseController
$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['marketdata'] = []; // $this->MarketData();
$res1['productdata'] = []; // $this->ProductData();
$res1['collectiondata'] = []; // $this->CollectionData();
$res1['blogdata']["payload"] = $this->getBlogData();
return $this->response->setJson($res1);
}