作者 潘浩文
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){