Browse Source

数据校验

541469799@qq.com 10 months ago
parent
commit
8285e24dee
1 changed files with 1 additions and 1 deletions
  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)
     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');
         }
         }