Commit 5cbbc9aa authored by zw's avatar zw

进场图片

parent f37076d3
...@@ -504,7 +504,12 @@ class OrderLogService ...@@ -504,7 +504,12 @@ class OrderLogService
foreach ($tree as $i => $v) { foreach ($tree as $i => $v) {
//查询图片 //查询图片
$oImgModel = new OImg(); $oImgModel = new OImg();
$params["img_id"] = $v[0]["father_id"]; if($img_type == 2){
$params["img_id"] = $v[0]["father_id"];
}else{
$params["img_id"] = $v["id"];
}
$params["img_type"] = $img_type; $params["img_type"] = $img_type;
$img_arr = $oImgModel->getImgList($params); $img_arr = $oImgModel->getImgList($params);
$trees[$i]["img"] = $img_arr; $trees[$i]["img"] = $img_arr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment