作者 lihan
1 个管道 的构建 通过 耗费 0 秒

修改bug阶段

... ... @@ -83,7 +83,7 @@ class GoodsController extends HomeBaseController
$total = Db::name('zj_cart')->alias('c')
->field('sum(num) as total')
->join('zj_goods g', 'c.gid=g.id')
->where(['uid' => session('user.id'), 'is_sta' => 2])
->where(['uid' => session('user.id'), 'is_sta' => 1])
->select();
if ($total[0]['total'] == '') {
$total = 0;
... ...