Authored by 周少峰

delete shopping cart goods model

... ... @@ -331,7 +331,7 @@ class CommonController extends WebAction
if (isset($result['code']) && $result['code'] == 200 && isset($result['total_goods_num'])) {
$this->helpJsonCallbackResult($callback, 200, $result['message'], array('total_goods_num' => $result['total_goods_num']));
} else {
$this->helpJsonCallbackResult($callback, $result['code'], $result['message'], '');
$this->helpJsonCallbackResult($callback, $result['code'], $result['message']);
}
}
... ...
... ... @@ -279,6 +279,9 @@ class CartModel
if ($remove && isset($remove['code'])) {
$result['code'] = $remove['code'];
$result['message'] = $remove['message'];
if (isset($remove['data']['goods_count'])) {
$result['total_goods_num'] = $remove['data']['goods_count'];
}
}
} while (false);
... ...