Commit 7de79284 authored by hujun's avatar hujun

图片json转数组

parent 99f2e4a6
...@@ -952,7 +952,8 @@ class GHouses extends BaseModel ...@@ -952,7 +952,8 @@ class GHouses extends BaseModel
if ($params['image_file']) { if ($params['image_file']) {
$m_img = new GHousesImgs(); $m_img = new GHousesImgs();
foreach ($params['image_file'] as $k=>$v) { $image_file = json_decode($params['image_file'], true);
foreach ($image_file as $k=>$v) {
$m_img->addHouseImg($v,$this->id); $m_img->addHouseImg($v,$this->id);
} }
} }
......
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