#588 增加了新闻添加时分平台信息自动添加的功能
This commit is contained in:
parent
660c208abc
commit
308c247d0f
|
@ -372,8 +372,10 @@ class Archive
|
|||
return 0;
|
||||
}
|
||||
|
||||
$config = \Zend_Registry::get('config');
|
||||
|
||||
//执行SQL语句后返回插入文章表的ID
|
||||
$sql = "INSERT INTO ".$this->tbl_archives." (userid,title,description,image,source,ts_published,is_pub,body)
|
||||
$sql = "INSERT INTO ".$this->tbl_archives." (userid,title,description,image,source,ts_published,is_pub,body,sub)
|
||||
VALUES (
|
||||
".$data['userid'].",
|
||||
".$data['title'].",
|
||||
|
@ -382,7 +384,8 @@ class Archive
|
|||
".$data['source'].",
|
||||
".$data['ts_published'].",
|
||||
".$data['is_pub'].",
|
||||
".$data['body']."
|
||||
".$data['body'].",
|
||||
'".$config->sub->metadata."'
|
||||
)
|
||||
RETURNING id";
|
||||
try{
|
||||
|
|
Loading…
Reference in New Issue