1
This commit is contained in:
parent
bfc870c3ba
commit
b31eccf460
@ -310,7 +310,7 @@ class ShopController extends BaseAuthedController {
|
||||
|
||||
public function boxPreview()
|
||||
{
|
||||
$goodsId = $goods['goods_id'];
|
||||
$goodsId = getReqVal('goods_id', '');
|
||||
|
||||
$goodsMeta = mt\ShopGoods::get($goodsId);
|
||||
if (!$goodsMeta) {
|
||||
@ -339,14 +339,13 @@ class ShopController extends BaseAuthedController {
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($goods['free_type'])) {
|
||||
$count = $this->countFreeBuyTimes($goods['free_type'], $goods['id'], $goods['goods_id']);
|
||||
$goods['free_num'] = $goods['free_num'] - $count;
|
||||
$freeNum = 0;
|
||||
if (!empty($goodsMeta['free_type'])) {
|
||||
//$count = $this->countFreeBuyTimes($goods['free_type'], $goods['id'], $goods['goods_id']);
|
||||
//$goodsMe['free_num'] = $goods['free_num'] - $count;
|
||||
} else {
|
||||
$goods['free_num'] = 0;
|
||||
//$goods['free_num'] = 0;
|
||||
}
|
||||
|
||||
$freeNum = $goods['free_num'];
|
||||
$this->_rspData(
|
||||
array(
|
||||
'items' => array_keys($record),
|
||||
|
Loading…
x
Reference in New Issue
Block a user