541469799@qq.com 10 месяцев назад
Родитель
Сommit
8285e24dee
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/index/controller/Index.php

+ 1 - 1
app/index/controller/Index.php

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