Authored by gemingdan

Update 订单分享活动.md

  1 +## 1、查询该订单是否可以分享##
  2 +
  3 +查询该订单是否可以分享,当可分享时可获得分享活动的详细参数(methods=getInfoOfOrderShare)
  4 +
  5 +
  6 +**请求参数:**
  7 +
  8 +| 参数名称 | 参数类型 |可否为空 |示例 |默认值 | 备注 |
  9 +| ---------|:--------:| --------:|-----:|------:|-----:|
  10 +|ordercode |string | 50 |否 |20160601sdfasffx | |订单编号|
  11 +|uid |int | 11 |否 |1 | |用户id|
  12 +
  13 +
  14 +
  15 +
  16 +请求示例http://192.168.102.217:8080/activity/share?methods=getInfoOfOrderShare
  17 +
  18 +请求body
  19 +
  20 + {
  21 + "ordercode": 20160601sdfasffx,
  22 + "uid": 1
  23 + }
  24 +
  25 +**响应**
  26 +
  27 +code为200即为成功,否则是失败。 响应JSON格式如下所示:
  28 +a、可以分享时flag为1,可获得分享活动部分参数
  29 + {
  30 + "code":200,
  31 + "message":"success",
  32 + "md5":null,
  33 + "data":{
  34 + "id":1,
  35 + "activityName":"订单分享活动",
  36 + "showPic":"",
  37 + "isShowPic":1,
  38 + "h5Title":"",
  39 + "unregistCouponId":"",
  40 + "registCouponId":"",
  41 + "couponMaxNum":0,
  42 + "shareMaxNum":5,
  43 + "activityNormalPic":""
  44 + ,"activityEndPic":"",
  45 + "shareImgUrl":"",
  46 + "shareTitle":"",
  47 + "shareContent":"",
  48 + "activityDesc":"",
  49 + "beginTime":1464749950,
  50 + "endTime":1474749950,
  51 + "couponPic":"",
  52 + "buttonLink":"",
  53 + "createTime":0,
  54 + "flag":1
  55 + }
  56 + }
  57 +
  58 +b、不可分享时flag为0,分享活动参数为null
  59 + {
  60 + "code":200,
  61 + "message":"success",
  62 + "md5":null,
  63 + "data":{
  64 + "id":null,
  65 + "activityName":null,
  66 + "showPic":null,
  67 + "isShowPic":null,
  68 + "h5Title":null,
  69 + "unregistCouponId":null,
  70 + "registCouponId":null,
  71 + "couponMaxNum":null,
  72 + "shareMaxNum":null,
  73 + "activityNormalPic":null,
  74 + "activityEndPic":null,
  75 + "shareImgUrl":null,
  76 + "shareTitle":null,
  77 + "shareContent":null,
  78 + "activityDesc":null,
  79 + "beginTime":null,
  80 + "endTime":null,
  81 + "couponPic":null,
  82 + "buttonLink":null,
  83 + "createTime":null,
  84 + "flag":0
  85 + }
  86 + }
  87 +
  88 +
  89 +