lszyh
zyh 1 month ago
parent 742bb974cb
commit 33683c3d6d
  1. 15
      app/api/controller/Goods.php

@ -544,4 +544,19 @@ class Goods extends Controller
}
/**
* 数据回显
*/
public function getGoodsTipoff()
{
$id = $this->request->param('id');
$detail = ModelTipoff::where('id',$id)->find();
if(empty($detail)){
return $this->renderError('暂无线报商品');
}
$goodsList = GoodsModel::whereIn("goods_id",$detail['goods_id'])->select();
return $this->renderSuccess(compact('goodsList'));
}
}

Loading…
Cancel
Save