...
|
...
|
@@ -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;
|
...
|
...
|
|