修复图片上传功能
This commit is contained in:
parent
4ebfaaa335
commit
1d1a62145f
|
@ -116,7 +116,7 @@ class ServiceController extends AbstractActionController
|
|||
$data['thumb'] = json_encode($msg['thumb'],JSON_NUMERIC_CHECK);
|
||||
|
||||
$dbh = new dbh();
|
||||
$id = $dbh->insert('tbl_attachments',$data,true);
|
||||
$id = $dbh->insert('attachments',$data,true);
|
||||
$msg['attid'] = $id;
|
||||
$msg['error'] = 0;
|
||||
$msg['url'] = $this->config->upload->urlbase . $msg['url'];
|
||||
|
|
Loading…
Reference in New Issue