master
sunke 5 years ago
parent 66776fef98
commit 7220083d84

@ -82,6 +82,9 @@ class ArticleController extends HomeController {
$field = 'id as document_id,category_id';
$decumentData = M('document')->field($field)->where("id={$id}")->find();
$promote_id = get_pid();
if(empty($promote_id)) {
$promote_id = 0;
}
foreach ($decumentData as $key => $value) {
$decumentData['promote_id'] = $promote_id;
$decumentData['create_time'] = time();

Loading…
Cancel
Save