...
|
...
|
@@ -23,7 +23,7 @@ class ZjCartController extends HomeBaseController |
|
|
$id=8;
|
|
|
$all=Db::name('zj_cart')->alias('c')->join('zj_goods g','c.gid=g.id')->join('zj_category ca','g.cid=ca.id')
|
|
|
->where('c.uid',$id)->field('c.id as cartid,c.gid,c.num,g.*,ca.cid as caid')->select();
|
|
|
if (empty($all)){
|
|
|
if (empty($all[0])){
|
|
|
$you=1;
|
|
|
}else{
|
|
|
$you=2;
|
...
|
...
|
|