/// <summary> /// 添加好友申请 /// </summary> /// <param name="strmodel"></param> public void Friend_AddFriendsApply(string strmodel) { Friends_Apply model = JsonConvert.DeserializeObject <Friends_Apply>(strmodel); model.Id = Guid.NewGuid(); model.ApplyerId = GetUserInfo().Id; var obj = oFriendsBLL.Friend_AddFriendsApply(model); JsonResponse(obj.ToString()); }
/// <summary> /// 添加好友申请 /// </summary> /// <param name="strmodel"></param> public void addFriendsApply(string strmodel) { Friends_Apply model = JsonConvert.DeserializeObject <Friends_Apply>(strmodel); model.Id = Guid.NewGuid(); model.ApplyerId = GetSignalrUserInfo().Id; var obj = oFriendsBLL.Friend_AddFriendsApply(model); ReturnModel remodel = JsonConvert.DeserializeObject <ReturnModel>(obj.ToString()); if (remodel.Code == 1) { Clients.User(model.OwnerId.ToString()).applyTipsToFriend(remodel); } Clients.Caller.applyTips(remodel); }