/// <summary> /// 更新多个用户的多个动作的积分 /// <para>可能抛出的错误:</para> /// <para>UserPointOverMaxValueError 积分超出上限</para> /// <para>UserPointOverMinValueError 积分超出下限</para> /// </summary> /// <param name="beforeUpdate"></param> /// <returns></returns> public bool UpdateUsersPoints(PointActionManager.TryUpdateUserPointCallback3 <T1> beforeUpdate) { return(PointActionManager.UpdateUsersPoints <T1>(Type, true, 0, beforeUpdate)); }
/// <summary> /// 更新多个用户的多个动作的积分 /// <para>可能抛出的错误:</para> /// <para>UserPointOverMaxValueError 积分超出上限</para> /// <para>UserPointOverMinValueError 积分超出下限</para> /// </summary> /// <param name="isNormal">通常为true,如果为false则取积分的相反值(通常发生在类似帖子由正常变成未审核,此时为false)</param> /// <param name="nodeId">没有则为0</param> /// <param name="beforeUpdate"></param> /// <returns></returns> public bool UpdateUsersPoints(bool isNormal, int nodeId, PointActionManager.TryUpdateUserPointCallback3 <T1> beforeUpdate) { return(PointActionManager.UpdateUsersPoints <T1>(Type, isNormal, nodeId, beforeUpdate)); }