1.获得今日救驾次数和今日收益
访问路径
参数
memberId 会员id
返回结果
{"data":{"todayCount":"1","todayIncome":"110"},"status":1,"info":"ok"}
2.获取今日错过的订单(10公里内,最多10个)
访问路径
http://api.aikaoen.com/?action=lostOrders&memberId=23004&lat=39.889&lon=116.341
参数
memberId 会员id
lat,lon 经纬度
返回结果中相关对应字段:
头像 : member.img
性别 :member.sex(1男2女)
姓名 :member.nickName
次数 : memberStat.totalPublish
金额 :money
时间 :publishTime
内容 :publishContent
地址 :address
状态 :status (1进行中2取消3被接单)
返回结果
{
"data": [
{
"member": {
"id": 4,
"nickName": "令狐飞雪",
"tel": "13120097615",
"sex": 0,
"img": "/2015-10-13/rycmoaedjx.jpg",
"level": 1,
"isLock": 0,
"lng": 116.162537,
"lat": 39.768,
"regLng": 116.327548,
"regLat": 39.791335,
"provinceId": 1,
"cityId": 1,
"districtId": 14,
"address": "北京市大兴区欣宁街靠近博雅Baobao乐园",
"regTime": 1441216936,
"isLogin": 1,
"vipStartTime": 0,
"vipEndTime": 0,
"lastBuyVipTime": 1444133816468,
"isDo": 1,
"leftUnread": 0,
"rightUnread": 1,
"updated": 2
},
"memberStat": {
"memberId": 4,
"totalPublish": 109,
"totalSubscribe": 39,
"totalCommentedTimes": 16,
"totalCommentedStar": 59,
"totalComplaintTimes": 0
},
"id": 23296,
"orderNumber": "144576000795763244",
"publisherMemberId": 4,
"subscriberMemberId": 875,
"provinceId": null,
"cityId": 1,
"districtId": 110106,
"publishContent": "尽快了",
"money": 1,
"deadline": 1445760720000,
"address": "北京市丰台区花乡镇大兴入口(G45大广高速入口南向)",
"sex": 0,
"img": "",
"publishTime": 1451359328000,
"payTime": null,
"updateTime": 1445761278136,
"hasPay": 1,
"hasOver": 0,
"hasCommentToSubscriber": 0,
"hasCommentToPublisher": 0,
"status": 2,
"lng": 116.345859,
"lat": 39.842209,
"hasConfPay": 0,
"confPayTime": 1451359328000,
"afterPayAllowCancel": 0,
"afterPayAllowCancelTime": null,
"askTaskTimes": 0,
"askMoneyTimes": 0,
"publisherAskCancel": 0,
"subscriberAllowCancel": 0,
"distanceRange": 10,
"subscriberCancel": 0,
"subscriberCancelTime": null,
"subscriberAskCancel": 0,
"publisherAllowCancel": 0,
"hasPayToAgent": 0,
"vipId": null,
"urgeRemainingTime": 0
}
],
"status": 1,
"info": "ok"
}
3.更新头像接口
访问路径
参数
memberId 会员id
file 图片文件
返回结果
{"status":"success","path":"/portraits/201512/605b7444c41c47b08b699c33f1e0e288.jpg"}
出现错误的时候返回结果示例
{"status":"error","errorMsg":"不是图片"}
网友评论