...
|
...
|
@@ -39,7 +39,7 @@ class GoodsController extends RestBaseController |
|
|
{
|
|
|
$param=$this->request->param();
|
|
|
$data=Db::name('goods')->where('id',$param['id'])->field('id,goods_name,before_price,now_price,vip_price,content,image')->find();
|
|
|
$status=Db::name('user')->where('id',$this->getUserId())->find()['status'];
|
|
|
$status=Db::name('user')->where('id',$this->getUserId())->find()['user_status'];
|
|
|
if ($status==1){
|
|
|
$data['price']=$data['now_price'];
|
|
|
}else if ($status==2){
|
...
|
...
|
|