wuggemail@foxmail.com 3 ماه پیش
والد
کامیت
7af5149ec1
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/cxinv/controller/FinancialManager.php

+ 1 - 1
app/cxinv/controller/FinancialManager.php

@@ -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);
     }