Authored by hf

do add product detail page

framework @ 75bbc3b0
1 -Subproject commit 119c247f5cf929aa1e059e40609bb16dd6b58f05 1 +Subproject commit 75bbc3b075de19f239532f60c5995d06c5f814e2
@@ -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);