zichuanwang / WeTongji_Backend

微同济后端
7 stars 0 forks source link

好友邀请Notification错误 #84

Closed zichuanwang closed 11 years ago

zichuanwang commented 11 years ago

http://leiz.name:8080/api/call?D=iOS&M=Notifications.Get&OnlyNew=0&P=1&S=cd808d592f2749316bf3470f09fe24bab5d8b923&U=201209182140229&V=3.0

返回 { Description = ""; Id = 18; SourceDetails = { AcceptedAt = ""; From = "\U738b\U7d2b\U5ddd"; Id = 28; RejectedAt = "2013-05-31T01:45:05+08:00"; SentAt = "2013-05-31T01:44:21+08:00"; To = "\U5fae\U540c\U6d4e"; UserDetails = { Avatar = "http://we.tongji.edu.cn/system/users/avatars/000/000/001/original/avatar.jpg?1369689430"; Birthday = "1990-06-24T00:00:00+09:00"; Degree = ""; Department = "\U8f6f\U4ef6\U5b66\U9662"; DisplayName = "\U738b\U7d2b\U5ddd"; Email = "wzc345@gmail.com"; Gender = "\U7537"; IsFriend = 1; Major = "(2009\U5e74)\U8f6f\U4ef6\U5de5\U7a0b"; NO = 092969; Name = "\U738b\U7d2b\U5ddd"; NativePlace = ""; Phone = 15216719574; Plan = 4; QQ = 610955867; Room = ""; RoomNO = ""; SinaWeibo = bluebitch; UID = 201205161608512; UserType = "\U5b66\U751f"; Words = ""; Year = 2009; }; }; SourceId = 28; SourceType = FriendInvite; Title = "\U738b\U7d2b\U5ddd\U9080\U8bf7\U4f60\U52a0\U4e3a\U597d\U53cb."; UnRead = 0; }

然后点击接受,返回成功,再刷一遍AcceptedAt还是null。

推测是这个两个人已经为好友了,然后再发送请求就不能Accept了。

服务器这部分的逻辑还是要理清啊。