[TOC]
* * * * *
### WeEngine Android、IOS Credit api
#### 余額明細列表
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.log.get_list
*string:type=0#0充值記錄 1提現記錄 2競猜記錄
*string:page=1#頁碼
*string:openid=默認值#openid
<<<
success
{
"status": 1,
"result": {
"list": [
{
"id": "",
"uniacid": "4",
"openid": "",
"type": "0",
"logno": "RC20171115165957248844",
"title": "",
"createtime": "2017-11-15 16:59", //時間
"status": "1",
"money": "", //金額
"rechargetype": "system",
"gives": null,
"couponid": "0",
"transid": "",
"realmoney": "0.00",
"charge": "0.00",
"deductionmoney": "0.00",
"isborrow": "0",
"borrowopenid": "",
"remark": "",
"apppay": "0",
"alipay": "",
"bankname": "",
"bankcard": "",
"realname": "",
"applytype": "0",
"sendmoney": "0.00",
"senddata": null,
"idcard": "",
"typestr": "微信錢包"
}
......
],
"total": "2", //數量
"pagesize": 10, //每頁數量
}
}
<<<
error
{
"status": 0,
"result": {
"message": "錯誤信息"
}
}
~~~
#### 余額提現
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.withdraw
*string:openid=默認值#openid
<<<
success
{
"status": 1,
"result": {
"result": {
"moneytext": "余額",
"credit": 0, //可提現余額
"type_array": { //提現方式
"3": {
"title": "提現到銀行卡"
}
},
"withdrawcharge": "",
"withdrawbegin": 0,
"withdrawend": 0,
"last_data": false,
"banklist": [ //銀行列表
{
"id": "14",
"uniacid": "4",
"bankname": "工商",
"content": "",
"status": "1",
"displayorder": "0"
}
],
"withdrawmoney": ""
},
}
}
<<<
error
{
"status": 0,
"result": {
"message": "錯誤信息"
}
}
~~~
#### 余額提現操作
~~~[api]
POST:https://127.0.0.1/app/index.php?i=4&c=entry&m=ewei_shopv2&do=mobile&r=apply.member.withdraw.submit
*string:openid=默認值#openid
*string:money=默認值#提現金額
*string:applytype=3#提現方式 銀行卡
*string:realname=默認值#姓名
*string:bankname=默認值#銀行
*string:bankcard=默認值#銀行卡號
*string:bankcard1=默認值#確認銀行卡號
*string:idcard=默認值#身份證號
<<<
success
{
"status": 1,
"result": {
}
}
<<<
error
{
"status": 0,
"result": {
"message": "錯誤信息"
}
}
~~~