浏览代码

数据校验

541469799@qq.com 10 月之前
父节点
当前提交
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');
         }