订单分享活动.md 2.09 KB

1、查询该订单是否可以分享

查询该订单是否可以分享,当可分享时可获得分享活动的详细参数(methods=getInfoOfOrderShare)

请求参数:

参数名称 参数类型 可否为空 示例 默认值 备注
ordercode string 50 20160601sdfasffx
uid int 11 1

请求示例http://192.168.102.217:8080/activity/share?methods=getInfoOfOrderShare

请求body

 {
 "ordercode": 20160601sdfasffx,
 "uid": 1
 }

响应

code为200即为成功,否则是失败。 响应JSON格式如下所示: a、可以分享时flag为1,可获得分享活动部分参数 { "code":200, "message":"success", "md5":null, "data":{ "id":1, "activityName":"订单分享活动", "showPic":"", "isShowPic":1, "h5Title":"", "unregistCouponId":"", "registCouponId":"", "couponMaxNum":0, "shareMaxNum":5, "activityNormalPic":"" ,"activityEndPic":"", "shareImgUrl":"", "shareTitle":"", "shareContent":"", "activityDesc":"", "beginTime":1464749950, "endTime":1474749950, "couponPic":"", "buttonLink":"", "createTime":0, "flag":1 } }

b、不可分享时flag为0,分享活动参数为null
{ "code":200, "message":"success", "md5":null, "data":{ "id":null, "activityName":null, "showPic":null, "isShowPic":null, "h5Title":null, "unregistCouponId":null, "registCouponId":null, "couponMaxNum":null, "shareMaxNum":null, "activityNormalPic":null, "activityEndPic":null, "shareImgUrl":null, "shareTitle":null, "shareContent":null, "activityDesc":null, "beginTime":null, "endTime":null, "couponPic":null, "buttonLink":null, "createTime":null, "flag":0 } }