Commit 5cb7b949 by 冷斌

测试

短信验证
parent 6195fe49
...@@ -80,7 +80,7 @@ class GoodsAction extends Action ...@@ -80,7 +80,7 @@ class GoodsAction extends Action
$good_category = implode(',', $cateId); $good_category = implode(',', $cateId);
$map .= " AND fullcategorypath like '%,$good_category,%'"; $map .= " AND fullcategorypath like '%,$good_category,%'";
} }
if ($sort_type) { if ($sort_type) {
switch ($sort_type) { switch ($sort_type) {
case '1': case '1':
...@@ -125,6 +125,9 @@ class GoodsAction extends Action ...@@ -125,6 +125,9 @@ class GoodsAction extends Action
$this->assign('sort_type', $sort_type); $this->assign('sort_type', $sort_type);
$this->assign("sple_score", $sple_score); $this->assign("sple_score", $sple_score);
var_dump($data);
die;
//如果是ajax并且为h5访问 直接输出后边的数据 //如果是ajax并且为h5访问 直接输出后边的数据
if ($this->isAjax() && $this->is_wap) { if ($this->isAjax() && $this->is_wap) {
$html = $this->fetch('index_w3g_ajax'); $html = $this->fetch('index_w3g_ajax');
...@@ -277,7 +280,7 @@ class GoodsAction extends Action ...@@ -277,7 +280,7 @@ class GoodsAction extends Action
if(!$address){ if(!$address){
$this->error('地址信息错误'); $this->error('地址信息错误');
} }
$stock = D('Goods')->where(array('id' => $data['goods_id']))->getField('stock'); $stock = D('Goods')->where(array('id' => $data['goods_id']))->getField('stock');
if ($data['count'] > $stock) { if ($data['count'] > $stock) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment