... | @@ -10,7 +10,6 @@ |
... | @@ -10,7 +10,6 @@ |
|
```javascript
|
|
```javascript
|
|
{
|
|
{
|
|
action: 'get_unread_message_count',
|
|
action: 'get_unread_message_count',
|
|
contact_user_id: 10
|
|
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
... | @@ -25,14 +24,30 @@ contact_user_id: 10 |
... | @@ -25,14 +24,30 @@ contact_user_id: 10 |
|
status: 0,
|
|
status: 0,
|
|
message: "请求成功",
|
|
message: "请求成功",
|
|
data: {
|
|
data: {
|
|
unread_message_count: "111779"
|
|
1: {
|
|
|
|
unread_count: "1",
|
|
|
|
last_unread_message: "jin asdf",
|
|
|
|
last_unread_time: "2016-12-15 14:37:04"
|
|
|
|
},
|
|
|
|
4: {
|
|
|
|
unread_count: "1",
|
|
|
|
last_unread_message: "12苏打绿速度快放假啦舒服",
|
|
|
|
last_unread_time: "2016-12-15 14:40:00"
|
|
|
|
},
|
|
|
|
15651: {
|
|
|
|
unread_count: "2",
|
|
|
|
last_unread_message: "<img src="http://static.dev.pingansec.com/shuidi/images/emoji/em_11.png">",
|
|
|
|
last_unread_time: "2016-12-15 14:32:23"
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
|
|返回值|说明|
|
|
|返回值|说明|
|
|
|:---|:---|
|
|
|:---|:---|
|
|
|unread_message_count|未读消息条数|
|
|
|unread_count|未读消息条数|
|
|
|
|
|last_unread_message|最新一条消息|
|
|
|
|
|last_unread_time|最新一条消息的发送时间|
|
|
|
|
|
|
#### 示例
|
|
#### 示例
|
|
http://shuidi.dev.pingansec.com/user?action=get_unread_message_count&contact_user_id=10 |
|
http://shuidi.dev.pingansec.com/user?action=get_unread_message_count |
|
\ No newline at end of file |
|
\ No newline at end of file |