🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
>获取当前登录用户的所有积分 ~~~[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": "错误信息" } ~~~