/// <summary> /// 创建主题标签 /// </summary> /// <param name="tagArray">标签数组</param> /// <param name="topicid">主题ID</param> /// <param name="userid">用户ID</param> /// <param name="curdatetime">当前日期</param> public static void CreateTopicTags(string[] tagArray, int topicId, int userId, string currentDateTime) { Discuz.Data.ForumTags.CreateTopicTags(string.Join(" ", tagArray), topicId, userId, currentDateTime); ForumTags.WriteTopicTagsCacheFile(topicId); DNTCache.GetCacheService().RemoveObject("/Forum/ShowTopic/Tag/" + topicId + "/"); }
public static void CreateTopicTags(string[] tagArray, int topicid, int userid, string curdatetime) { DatabaseProvider.GetInstance().CreateTopicTags(string.Join(" ", tagArray), topicid, userid, curdatetime); ForumTags.WriteTopicTagsCacheFile(topicid); }