作者 王智

222

... ... @@ -131,8 +131,6 @@ class ShopCar extends Api
}
}
$arr = Db::name('shopcar')->where(['user_id' => $user_id])->select();
print_r($arr);
die;
foreach ($arr as $k => $v) {
$list[$k] = $this->CalculateCommodityAmount($v['product_id'], $v['id'], $v['buy_num']);
}
... ... @@ -154,11 +152,7 @@ class ShopCar extends Api
$return['list'] = $listitem;
$this->success('', $return);
}
public function ceshi()
{
$rr = $this->CalculateCommodityAmount(8, 78, 9);
print_r($rr);
}
/**
* @ApiTitle (购物车接口-购物车删除)
... ...