Exemple #1
0
        /// <summary>
        /// 首次上传头像加分
        /// </summary>
        /// <param name="sender">用户实体</param>
        /// <param name="eventArgs">事件参数</param>
        public void UserPointEventModule_After(User sender, CropAvatarEventArgs eventArgs)
        {
            string pointItemKey       = string.Empty;
            string eventOperationType = string.Empty;

            if (eventArgs.IsFirst)
            {
                PointService pointService = new PointService();
                pointItemKey = PointItemKeys.Instance().FirstUploadAvatar();
                string description = ResourceAccessor.GetString("PointRecord_Pattern_FirstUploadAvatar");
                pointService.GenerateByRole(sender.UserId, pointItemKey, description, true);
            }
        }
 /// <summary>
 /// 首次上传头像加分
 /// </summary>
 /// <param name="sender">用户实体</param>
 /// <param name="eventArgs">事件参数</param>
 public void UserPointEventModule_After(User sender, CropAvatarEventArgs eventArgs)
 {
     string pointItemKey = string.Empty;
     string eventOperationType = string.Empty;
     if (eventArgs.IsFirst)
     {
         PointService pointService = new PointService();
         pointItemKey = PointItemKeys.Instance().FirstUploadAvatar();
         string description = ResourceAccessor.GetString("PointRecord_Pattern_FirstUploadAvatar");
         pointService.GenerateByRole(sender.UserId, pointItemKey, description, true);
     }
 }