[TOC]
* * * * *
### WeEngine Android、IOS Commission api
#### 卡券詳情
* 卡券名: couponname
* 內容1: backtype=2 顯示 title2立返 否則 顯示 title3
* 內容2: backtype=2 顯示 backmoney(>0)元余額 backcredit(>0)積分 backredpack(>0)元紅包 否則 顯示 title2
* 有效期: timestr=0 永久有效 、timestr=1 即 gettypestr 日內 timedays 天有效 、都不成立顯示 timestr
* * * * *
* 所需金額與積分 money>0 或者 credit>0 顯示 money>0顯示 所需金額:money、 credit>0顯示 所需積分:credit
* * * * *
* 使用商鋪 merchname不為空顯示 限購merchname店鋪商品
* * * * *
* 使用說明 desc
* * * * *
* 領取限制 limitlevel 數組
* * * * *
* 有效期限 usetime 換行 buyagent
* * * * *
* 使用限制 useagent 數組
* * * * *
* 立即領取 canget 為true可以領取 為false不能領取 、cangetmsg
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.sale.detail
*string:openid=默認值#openid
*string:id=默認值#卡券ID
<<<
success
{
"status": 1,
"result": {
"id": "10",
"uniacid": "4",
"catid": "6",
"couponname": "測試",
"gettype": "1",
"getmax": "0",
"usetype": "0",
"returntype": "0",
"bgcolor": "",
"enough": "0.00",
"timelimit": "0",
"coupontype": "0",
"timedays": "0",
"timestart": "1509897600",
"timeend": "1510588799",
"discount": "0.00",
"deduct": "1.00",
"backtype": "0",
"backmoney": "",
"backcredit": "",
"backredpack": "",
"backwhen": "0",
"thumb": "https://127.0.0.1/attachment/images/4/2017/11/FlHp20jT90mcxHh6h694t59tv9h57P.png",
"desc": "",
"createtime": "1509940758",
"total": 90,
"status": "0",
"money": "0.00",
"respdesc": "",
"respthumb": "",
"resptitle": "",
"respurl": "",
"credit": "0",
"usecredit2": "0",
"remark": "",
"descnoset": "0",
"pwdkey": "",
"pwdsuc": "",
"pwdfail": "",
"pwdurl": "",
"pwdask": "",
"pwdstatus": "0",
"pwdtimes": "0",
"pwdfull": "",
"pwdwords": "",
"pwdopen": "0",
"pwdown": "",
"pwdexit": "",
"pwdexitstr": "",
"displayorder": "5",
"pwdkey2": "",
"merchid": "0",
"limitgoodtype": "0",
"limitgoodcatetype": "0",
"limitgoodcateids": "",
"limitgoodids": "",
"islimitlevel": "0",
"limitmemberlevels": "",
"limitagentlevels": "",
"limitpartnerlevels": "",
"limitaagentlevels": "",
"tagtitle": "",
"settitlecolor": "0",
"titlecolor": "#000000",
"limitdiscounttype": "0",
"quickget": "0",
"free": false,
"past": false,
"merchname": "",
"getstatus": 3,
"gettypestr": "領取",
"timestr": "0",
"css": "deduct",
"backstr": "立減",
"backpre": true,
"_backmoney": "1.00",
"cangetmax": -1,
"canget": true,
"color": "orange",
"title2": "無金額門檻",
"title3": "¥1",
}
}
<<<
error
{
"status": 0,
"result": {
"message": "錯誤信息"
}
}
~~~