正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -39,7 +39,7 @@ class GoodsController extends RestBaseController | @@ -39,7 +39,7 @@ class GoodsController extends RestBaseController | ||
39 | { | 39 | { |
40 | $param=$this->request->param(); | 40 | $param=$this->request->param(); |
41 | $data=Db::name('goods')->where('id',$param['id'])->field('id,goods_name,before_price,now_price,vip_price,content,image')->find(); | 41 | $data=Db::name('goods')->where('id',$param['id'])->field('id,goods_name,before_price,now_price,vip_price,content,image')->find(); |
42 | - $status=Db::name('user')->where('id',$this->getUserId())->find()['status']; | 42 | + $status=Db::name('user')->where('id',$this->getUserId())->find()['user_status']; |
43 | if ($status==1){ | 43 | if ($status==1){ |
44 | $data['price']=$data['now_price']; | 44 | $data['price']=$data['now_price']; |
45 | }else if ($status==2){ | 45 | }else if ($status==2){ |
-
请 注册 或 登录 后发表评论