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