修复图片上传功能

This commit is contained in:
Li Jianxuan 2014-03-05 08:58:40 +00:00
parent 4ebfaaa335
commit 1d1a62145f
1 changed files with 1 additions and 1 deletions

View File

@ -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'];