B2C商城
使用手册
设置模块
模板设置
数据库管理
插件管理
积分管理
小程序直播
第三方账号注册流程
网站模块
商品模块
订单管理模块
供应商模块
数据模块
微商城模块
小程序&APP模块
常见问题
其他
API接口
用户中心接口
商品相关接口
开发手册
开发教程
基础教程
视频教程
TP视频教程
获取消息列表
URL地址 | http://www.tpshop.com/index.php?m=api&c=user&a=message |
请求方式 | get |
参数列表
参数 | 是否必须 | 说明 |
p | 可选 | 第几页,默认第一页 |
| category | 可选 | 消息类型:(默认0)0系统消息,1物流通知,2优惠促销,3商品提醒,4我的资产,5商城好店 |
示例:
成功返回:
{
"status": 1,
"msg": "获取成功",
"result": [
{
"message_id": 26, //消息id
"status": 0, //状态 0未查看,1已查看
"type": 0,//个体消息:0,全体消息:1
"data": { //具体看下方
"title": "哈哈商品",
"post_time": 1495616640,
"discription": "商品详情"
}
},
{
"message_id": 13,
"status": 0,
"type": 0,
"data": false
}
]
}
各种category的情况:
{
"type": 1,//物流通知: 进入订单详情
"data":{
"title": "发货提醒",
"post_time": 1495504018,
"order_id": "TP00001212",
"discription": "童装童鞋跨店3免1!1999减51元券限时抢!",
"goods_id": "商品ID"
}
}
{
"type": 2,//商品促销: 进入商品详情
"data":{
"title": "儿童狂欢节",
"post_time": 1495504018,
"cover": "/upload/message/cover.jpg", //封面图片
"discription": "童装童鞋跨店3免1!1999减51元券限时抢!",
"goods_id": "001"
}
}
{
"type": 4,//资产变动: 包含积分/余额变动/优惠券
"data":{
"change_type":1:积分,2:余额,3:优惠券
"title": "",
"post_time": 1495504018,
"discription": "童装童鞋跨店3免1!1999减51元券限时抢!",
"money" : "优惠券面值" //优惠券类型通知时该值才大于0
}
}
{
"type": 0,//服务通知
"data":{
"title": "",
"post_time": 1495504018,
"discription": "童装童鞋跨店3免1!1999减51元券限时抢!",
}
}