>获取兑换积分的类型,在后台可以设置某种积分可被兑换,此处获取的数据为可兑换积分的类型 ~~~[api] get:/index.php/accounts/Apipoint/member_exchange_list <<< success { "err": 0, "count": 2, "data": [{ "point_type_": "point", "point_name_": "积分", "point_type": "money", "point_name": "资金", "scale": "0.2", "poundagePointType": "point", "poundagePointType_name": "积分", "poundage_type": "0", "poundage": "5" }, { "point_type_": "money", "point_name_": "资金", "point_type": "point", "point_name": "积分", "scale": "10", "poundagePointType": "money", "poundagePointType_name": "资金", "poundage_type": "1", "poundage": "10" }] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 |描述 | | --- | --- | | count | 兑换币种数 | | data| 兑换积分的数据 | | |----point_type_| 要兑换的积分标识 | | |----point_name_ | 要兑换的积分名称 | | |----point_type| 被兑换成的积分标识 | | |----point_name| 被兑换成的积分名称 | | |----scale| 积分兑换的比率 如0.2表示 1个point_type_name_ 兑换0.2个point_type_name | | |----poundagePointType| 手续费的积分标识 | | |----poundagePointType_name| 手续费的积分名称 | | |----poundage_type| 首先费方式 0:固定数额,1:百分比| | |----poundage| 手续费额度 | >积分兑换,将一种积分兑换成另外一种积分 ~~~[api] get:/index.php/accounts/Apipoint/member_submit_exchange_point *string:point_type_=point #被兑换的积分 point兑换成money *string:point_type=money #兑换成的积分 *int:point=0 #兑换的金额 <<< success { "err": 0, "data": { "point_type_": "money", "point_name_": "资金", "point_unit_": "元", "balance_": 987.5, "point_type": "money", "point_name": "资金", "point_unit": "元", "balance": 10 } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 |描述 | | --- | --- | | data| 兑换积分的数据 | | |----point_type_| 要兑换的积分标识 | | |----point_name_ | 要兑换的积分名称 | | |----point_unit_ | 要兑换的积分单位 | | |----balance_| 要兑换的积分当前的余额 | | |----point_type| 被兑换成的积分标识 | | |----point_name| 被兑换成的积分名称 | | |----point_unit| 被兑换成的积分单位 | | |----balance| 被兑换成的积分当前的余额 |