|
@@ -135,7 +135,7 @@ class Index extends Controller
|
|
public function productDetails($goodsId)
|
|
public function productDetails($goodsId)
|
|
{
|
|
{
|
|
//$goodsId = $this->request->param('goodsId', 0);
|
|
//$goodsId = $this->request->param('goodsId', 0);
|
|
- $goodsId = intval($this->request->param('goodsId', 0));
|
|
|
|
|
|
+ $goodsId = intval($goodsId);
|
|
if (empty($goodsId)) {
|
|
if (empty($goodsId)) {
|
|
return \redirect('index');
|
|
return \redirect('index');
|
|
}
|
|
}
|