|
@@ -181,7 +181,7 @@ class Article extends Base
|
|
|
|
|
|
$keys = explode(',', $data['keywords']);
|
|
|
|
|
|
- Tag::saveTags($keys, $article->id);
|
|
|
+ Tag::saveTags($keys, (int) $article->id);
|
|
|
}
|
|
|
|
|
|
public static function updateOne($data)
|
|
@@ -201,8 +201,8 @@ class Article extends Base
|
|
|
|
|
|
$dec = array_diff($oldkeys, $newkeys);
|
|
|
|
|
|
- Tag::saveTags($keys, $article->id);
|
|
|
+ Tag::saveTags($keys, (int) $article->id);
|
|
|
|
|
|
- Tag::decNums($dec, $article->id);
|
|
|
+ Tag::decNums($dec, (int) $article->id);
|
|
|
}
|
|
|
}
|