|
@@ -125,7 +125,9 @@ class Consult extends Controller
|
|
|
if(isset($data['type']) && $data['type'] == 2){
|
|
|
$data['user_name'] = Db::name('store_member')->where('id',$data['user_id'])->value('name');
|
|
|
}
|
|
|
- $data['image'] = implode('|',image_path($data['image']));
|
|
|
+ if(isset($data['image'])){
|
|
|
+ $data['image'] = implode('|',image_path($data['image']));
|
|
|
+ }
|
|
|
$this->is_recommend = array('0'=>'不推荐','1'=>'推荐');
|
|
|
} elseif ($this->request->isPost()) {
|
|
|
if (empty($data['image'])) $this->error('展示图片不能为空,请上传图片');
|