Commit 185335d5 authored by zhz's avatar zhz

evaluation

parent f869dc11
......@@ -74,6 +74,9 @@ class EvaluationServiceModel extends \Business\AbstractModel {
//$images = $this->_upload($v['images']);
$images = $v['images'];
if(!is_array($images)) $images = json_decode($images, true);
if(is_array($images) && empty($images)) {
$images = null;
}
$images ? $data['goods'][$k]['haveImg'] = 1 : $data['goods'][$k]['haveImg'] = 0;
if($data['goods'][$k]['haveImg'] == 1) {
foreach ($images as &$image) {
......
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