do add product detail page
Showing
3 changed files
with
8 additions
and
1 deletions
framework @ 75bbc3b0
@@ -177,6 +177,7 @@ class DetailModel | @@ -177,6 +177,7 @@ class DetailModel | ||
177 | public static function getSizeInfo($productSkn) | 177 | public static function getSizeInfo($productSkn) |
178 | { | 178 | { |
179 | $sizeInfo = DetailData::sizeInfo($productSkn); | 179 | $sizeInfo = DetailData::sizeInfo($productSkn); |
180 | + | ||
180 | var_dump($sizeInfo); | 181 | var_dump($sizeInfo); |
181 | } | 182 | } |
182 | 183 |
@@ -17,7 +17,13 @@ class DetailController extends AbstractAction | @@ -17,7 +17,13 @@ class DetailController extends AbstractAction | ||
17 | public function indexAction() | 17 | public function indexAction() |
18 | { | 18 | { |
19 | $productId = $this->param('productId', 123); | 19 | $productId = $this->param('productId', 123); |
20 | + if (!is_numeric($productId)) { | ||
21 | + $this->error(); | ||
22 | + } | ||
20 | $goodsId = $this->param('goodsId', 3241); | 23 | $goodsId = $this->param('goodsId', 3241); |
24 | + if (!is_numeric($goodsId)) { | ||
25 | + $this->error(); | ||
26 | + } | ||
21 | $uid = $this->getUid(); | 27 | $uid = $this->getUid(); |
22 | 28 | ||
23 | $data = \Product\DetailModel::getBaseInfo($productId, $goodsId, $uid); | 29 | $data = \Product\DetailModel::getBaseInfo($productId, $goodsId, $uid); |
-
Please register or login to post a comment