>獲取當前登錄用戶的所有積分
~~~[api]
get:/index.php/accounts/Apipoint/member_point
<<<
success
{
"err": 0,
"data": {
"money": {
"point_type": "money",
"point_name": "資金",
"point_unit": "員",
"point": 10,
"ico": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
},
"amount": {
"point_type": "amount",
"point_name": "點卷",
"point_unit": "點",
"point": 10,
"ico": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
}
}
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "錯誤信息"
}
~~~
>獲取當前登錄用戶的某一種積分
~~~[api]
get:/index.php/accounts/Apipoint/member_point_single
*string:point_type=money #積分標識
<<<
success
{
"err": 0,
"data":
{
"point_type": "money",
"point_name": "資金",
"point_unit": "員",
"point": 10,
"ico": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
}
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "錯誤信息"
}
~~~
>當前登錄用戶積分排行
~~~[api]
get:/index.php/accounts/Apipoint/member_point_ranking
int:num=10 #排行顯示條數
string:point_type=money #積分標識,表示那種積分的排行
string:select_type=0 #查找類型,0:全部,1:當天,2:本周,3:當月,4:當年
<<<
success
{
"err": 0,
"data": {
"point_type": "money",
"point_name": "資金",
"point_unit": "元",
"current_user": {
"userid": 5,
"nickname": "用戶5",
"point": 10,
"headpath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
"ranking": 10
},
"data": [
{
"userid": 1,
"nickname": "用戶1",
"point": 10,
"headpath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
"ranking": 1
},
{
"userid": 2,
"nickname": "用戶2",
"point": 5,
"headpath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
"ranking": 2
}
]
}
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "錯誤信息"
}
~~~
>獲取當前登錄用戶的收支數據
~~~[api]
get:/index.php/accounts/Apiaccounts/member_income_expenditure_list
*string:point_type=money #查找的積分類型,默認為money
*string:select_type=0 #查找類型,0:全部,1:當天,2:本周,3:當月,4:當年,5:時間區間(starttime 和endtime必填)
int:starttime= #查找的起始時間戳
int:endtime= #查找的結束時間戳
int:pagesize=10#每頁顯示個數
int:page=1#顯示頁碼數
string:sort= id #排序字段
string:sort_type= asc#排序類型
<<<
success
{
"err": 0,
"page": 1,
"pageTotal": 10,
"pageSize": 10,
"count": 2,
"income_total":30,
"expenditure_total":20,
"balance":10,
"data": [
{
"type": 1,
"point_type": "money",
"point_name": "資金",
"point_unit": "元",
"point": 10,
"operation_type": "CC",
"operation_type_name": "簽到",
"business_type": "AA",
"business_type_name": "系統贈送",
"msg": "簽到送余額:5.00元",
"operation_user": "系統",
"addtime": 1557113372,
"balance": 70
},
{
"type": 2,
"point_type": "money",
"point_name": "資金",
"point_unit": "元",
"point": -10,
"operation_type": "CC",
"operation_type_name": "抽獎",
"business_type": "AA",
"business_type_name": "系統扣除",
"msg": "抽獎扣除5元",
"operation_user": "系統",
"addtime": 1557113372,
"balance": 70
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "錯誤信息"
}
~~~
>獲取當前登錄用戶的收入
~~~[api]
get:/index.php/accounts/Apiaccounts/member_income_list
*string:point_type=money #查找的積分類型,默認為money
*string:select_type=0 #查找類型,0:全部,1:當天,2:本周,3:當月,4:當年,5:時間區間(starttime 和endtime必填)
int:starttime= #查找的起始時間戳
int:endtime= #查找的結束時間戳
int:pagesize=10#每頁顯示個數
int:page=1#顯示頁碼數
string:sort= id #排序字段
string:sort_type= asc#排序類型
<<<
success
{
"err": 0,
"page": 1,
"pageTotal": 10,
"pageSize": 10,
"count": 1,
"total":30,
"today_total":20,
"week_total":20,
"month_total":20,
"balance":10,
"pointInfo":{
"point_type": "money",
"point_name": "資金",
"point_unit": "元",
},
"data": [
{
"point_type": "money",
"point_name": "資金",
"point_unit": "元",
"point": 10,
"operation_type": "CC",
"operation_type_name": "簽到",
"business_type": "AA",
"business_type_name": "系統贈送",
"msg": "簽到送余額:5.00元",
"operation_user": "系統",
"addtime": 1557113372,
"balance": 70
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "錯誤信息"
}
~~~
>獲取當前登錄用戶的支出
~~~[api]
get:/index.php/accounts/Apiaccounts/member_expenditure_list
*string:point_type=money #查找的積分類型,默認為money
*string:select_type=0 #查找類型,0:全部,1:當天,2:本周,3:當月,4:當年,5:時間區間(starttime 和endtime必填)
int:starttime= #查找的起始時間戳
int:endtime= #查找的結束時間戳
int:pagesize=10#每頁顯示個數
int:page=1#顯示頁碼數
string:sort= id #排序字段
string:sort_type= asc#排序類型
<<<
success
{
"err": 0,
"page": 1,
"pageTotal": 10,
"pageSize": 10,
"count": 1,
"total":20,
"today_total":20,
"week_total":20,
"month_total":20,
"balance":10,
"pointInfo":{
"point_type": "money",
"point_name": "資金",
"point_unit": "元",
},
"data": [
{
"point_type": "money",
"point_name": "資金",
"point_unit": "元",
"point": 10,
"operation_type": "CC",
"operation_type_name": "抽獎",
"business_type": "AA",
"business_type_name": "系統扣除",
"msg": "抽獎扣除5元",
"operation_user": "系統",
"addtime": 1557113372,
"balance": 70
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "錯誤信息"
}
~~~
>用戶觀看了某個內容達到一定時間可領取積分
~~~[api]
get:/index.php/accounts/Apiaccounts/member_submit_browse_getPoint
*string:browse_sign=curriculum#瀏覽標識,區分是那種內容領取積分,如產品(product),課程(curriculum),文章(helper)等領取的積分
*int:sign_id=0 #標識id
<<<
success
{
"err": 0,
"data": [
{
"point_type": "money",
"point_name": "資金",
"point_unit": "元",
"point": 10,
"balance": 70
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "錯誤信息"
}
~~~