fix devops error
This commit is contained in:
@@ -67,24 +67,32 @@ class ArticleController extends Controller
|
||||
return Articles::destroy($id);
|
||||
}
|
||||
|
||||
public function getProductDescription($product_id, $model)
|
||||
public function getProductDescription($productId, $model)
|
||||
{
|
||||
$data['article']['inherited'] = Articles::getInheritedByProduct($product_id, base64_decode($model));
|
||||
$data = [
|
||||
'article' => [
|
||||
'inherited' => Articles::getInheritedByProduct($productId, base64_decode($model)),
|
||||
],
|
||||
];
|
||||
|
||||
return view('Admin.Shop.Articles.partials.product.description', $data);
|
||||
}
|
||||
|
||||
public function getProductTags($product_id, $model)
|
||||
public function getProductTags($productId, $model)
|
||||
{
|
||||
$data = Articles::getInheritedByProduct($product_id, base64_decode($model));
|
||||
$data = Articles::getInheritedByProduct($productId, base64_decode($model));
|
||||
|
||||
return view('Admin.Shop.Articles.partials.product.tags', $data);
|
||||
}
|
||||
|
||||
public function getProductImages($product_id, $model)
|
||||
public function getProductImages($productId)
|
||||
{
|
||||
$data['article']['product_id'] = $product_id;
|
||||
$data['no_popup'] = false;
|
||||
$data = [
|
||||
'article' => [
|
||||
'product_id' => $productId,
|
||||
],
|
||||
'no_popup' => false,
|
||||
];
|
||||
|
||||
return view('Admin.Shop.Articles.partials.product.images', $data);
|
||||
}
|
||||
@@ -92,7 +100,9 @@ class ArticleController extends Controller
|
||||
public function getImages(Request $request, $id = false)
|
||||
{
|
||||
$id = $id ? $id : $request->input('id');
|
||||
$data['images'] = Articles::getImages($id);
|
||||
$data = [
|
||||
'images' => Articles::getImages($id),
|
||||
];
|
||||
|
||||
return view('components.uploader.mini-gallery-items', $data);
|
||||
}
|
||||
@@ -107,14 +117,14 @@ class ArticleController extends Controller
|
||||
|
||||
public function toggleVisible(Request $request)
|
||||
{
|
||||
$data = Articles::toggleVisible($request->input('id'), ($request->input('visible') == 'true') ? 1 : 0);
|
||||
$data = Articles::toggleVisible($request->input('id'), ($request->input('visible') === 'true') ? 1 : 0);
|
||||
|
||||
return response()->json(['error' => 0]);
|
||||
}
|
||||
|
||||
public function toggleHomepage(Request $request)
|
||||
{
|
||||
$data = Articles::toggleHomepage($request->input('id'), ($request->input('homepage') == 'true') ? 1 : 0);
|
||||
$data = Articles::toggleHomepage($request->input('id'), ($request->input('homepage') === 'true') ? 1 : 0);
|
||||
|
||||
return response()->json(['error' => 0]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user