|
@@ -166,7 +166,7 @@ class FinancialManager extends Base{
|
|
|
|
|
|
public function info(){
|
|
|
$id=$this->request->param("id",0,"intval");
|
|
|
- $info=$this->model->findOrEmpty($id);
|
|
|
+ $info=$this->model->with(['ProductRela'=>["product"]])->findOrEmpty($id);
|
|
|
if($info->isEmpty()) return error("数据不存在");
|
|
|
return success("获取成功",$info);
|
|
|
}
|