ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
>获取登录用户的积分数据 ~~~[api] get:/index.php/accounts/Apipoint/member_point string:point_type= #积分标识,如果传入表示获取某种积分,如果不传表示获取全部积分 <<< success 没有传入参数 { "err": 0, "data": { "money": { "point_type": "money", "point_name": "资金", "point_unit": "元", "decimal": 2, "point": "10.00", "ico": "\/web\/public\/Upload\/admin\/1\/5e61fac478e9a.png" }, "point": { "point_type": "point", "point_name": "积分", "point_unit": "分", "decimal": 1, "point": "0.0", "ico": "http:\/\/localhost\/web\/public\/Upload\/member\/0\/\/hf7z22c0931583477564857.png" } } } <<< success 传入参数 point_type= point { "err": 0, "data": { "point_type": "point", "point_name": "积分", "point_unit": "分", "decimal": 1, "point": "0.0", "ico": "http:\/\/localhost\/web\/public\/Upload\/member\/0\/\/hf7z22c0931583477564857.png" } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 | 描述 | | --- | --- | | point_type | 积分类型标识 | | point_name | 积分名称 | | point_unit | 积分单位 | | decimal| 积分小数位数 | | point | 当前会员所拥有的积分数 | | ico | 积分图标 | >获取登录用户的资金流水 ~~~[api] get:/index.php/accounts/Apipoint/member_income_expenditure_list int:budget_type= 0#查找收入支持类型 0:收入支出,1:收入,2:支出 string:point_type= #积分标识,不传:查找所有积分的收支数据,传入:查找单种积分的收支数据 int:select_type=0#查找类型,0:全部,1:当天,2:本周,3:当月,4:当年,5:时间区间(starttime 和endtime必填) int:starttime= #查找的起始时间戳,select_type为5时生效 int:endtime= #查找的结束时间戳,select_type为5时生效 int:pagesize=10#每页显示个数 int:page=1#显示页码数 string:sort= id #排序字段 string:sort_type= asc#排序类型 <<< success { "err": 0, "page": 1, "pageSize": 10, "count": 2, "pageTotal": 1, "data": [{ "type": 1, "point_type": "money", "point_name": "资金", "point_unit": "元", "point_ico": "\/web\/public\/Upload\/admin\/1\/5e61fac478e9a.png", "operation_type": "签到送积分", "business_type": "system", "msg": "签到送资金:5.00元", "operation_user": "SYSTEM", "addtime": "2020-02-01 22:13:48", "balance": 8 }, { "type": 1, "point_type": "money", "point_name": "资金", "point_unit": "元", "point_ico": "\/web\/public\/Upload\/admin\/1\/5e61fac478e9a.png", "operation_type": "签到送积分", "business_type": "system", "msg": "签到送资金:5.00元", "operation_user": "SYSTEM", "addtime": "2020-03-01 22:13:48", "balance": 10 }] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 | 描述 | | --- | --- | | page | 当前页码 | | pageTotal | 总共页码数 | | pageSize | 每页显示记录条数 | | count| 当前记录数 | | data| 流水列表 | | |----type | 流水的类型 1:收入,2:支出 | | |----point_type| 积分类型标识 | | |----point_name | 积分名称 | | |----point_unit| 积分单位 | | |----point_ico| 积分图标 | | |----operation_type| 流水操作类型 | | |----business_type| 流水交易类型 | | |----msg| 流水备注 | | |----operation_user| 操作用户 system:系统操作 | | |----addtime| 操作时间 | | |----balance| 交易后的余额 |