🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
>获取登陆会员信息 ~~~[api] get:/index.php/member/Apimember/member_getInfo <<< success { "id": 1, "addtime": "", "logintime": "", "headpath": "", "nickname": "222", "birthday": "", "Loginip": "", "login_type": "", "groups": { "4": { "groupName": "联合创始人", "groupThumb": "", "level": 3, "endtime": "2020-03-31 00:00:00", "isText": 0 }, "1": { "groupName": "普通会员", "groupThumb": "", "level": 0, "endtime": "", "isText": 0 } }, "recommend": { "id": 1, "nickname": "222", "headpath": "" } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 | 详情 | | --- | --- | | id | 用户id | | addtime | 注册时间 | | logintime | 登录时间 | | headpath | 用户头像 | | nickname| 用户昵称 | | mobile| 会员手机号 | | birthday | 生日 | | Loginip | 登录ip | | login_type | 用户注册类型, WX:微信,QQ:qq,Alipay:阿里 | | groups | 会员组信息,key值为组id,用户同时可以有多个会员组,权限值越大越在前边| | |----groupName| 会员组名称 | | |----groupThumb| 组的图标 | | |----level| 会员组权限值 | | |----endtime| 会员组到期日期,为空表示永不过期 | | |----isText| 是否为试用会员 0:正常,1:试用 | | recommend| 推荐用户| | |----id | 推荐用户的id | | |----nickname| 推荐用户昵称 | | |----headpath| 推荐用户头像 | >会员组列表 ~~~[api] get:/index.php/member/Apimember/member_group_list int:type= 0#是否显示低于当前会员组权限值的会员组,如果当前登录会员有多个会员组,当前会员组的权限值以最高权限值为准 0:全部显示,1:显示高权限值的会员组 <<< success { "err": 0, "count": 3, "data": { "3": { "groupName": "钻石会员", "groupThumb": ""/public/Upload/administrator/1/2_2019_08_21_17_23_14.png", "describe": null, "level": 2, "maxnum": 3, "has": 0, "buy_price": [{ "type": "year", "num": "1", "point_type": "money", "point": 1980, "point_name": "资金", "point_unit": "元", "point_ico": "/public/Upload/administrator/1/2_2019_08_21_17_23_14.png"" }, { "type": "month", "num": "2", "point_type": "money", "point": 5, "point_name": "资金", "point_unit": "元", "point_ico": "/web/public/Upload/admin/1/5e61fac478e9a.png" }] }, } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 | 详情 | | --- | --- | | count | 会员组个数 | | data| 会员组数据,key为会员组id| | |----groupName| 会员组名称 | | |----groupThumb| 组的图标 | | |----level| 会员组权限值 | | |----describe| 会员组描述 | | |----maxnum| 会员组容纳人数,预留字段,暂时无实际用途 | | |----has| 会员是否购买该会员组 | | |----buy_price| 会员组购买价格 | | |----|-----type | 购买时间类型 year:年,month:用,day:天 | | |----|-----num | 购买时间数额 | | |----|-----point_type | 购买积分类型,固定money | | |----|-----point | 积分数额 | | |----|-----point_name | 积分名称 | | |----|-----point_unit | 积分单位 | | |----|-----point_ico| 积分图标 | >购买会员组 ~~~[api] get:/index.php/member/Apimember/member_group_pay *int:id= # 购买会员组的id *int:interval=10#购买时长 *string:interval_unit=day#购买时长单位,day:天,month:月,year:年 int:isGive=0#是否赠送,0:普通购买,1:赠送模式 *string:pay_type=WX #支付方式 WX:微信支付,Balance:余额支付,Alipay:支付宝支付, <<< success { "err": 0, "data": { "pay_type": "WX", "param": "", } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 |描述 | | --- | --- | | data| 选择支付类型提交后返回的数据 | | |----pay_type| 支付类型,WX:在微信浏览器中支付,一般为公众号中支付(wxPayJs支付方式),WX_H5:H5支付,一般在手机上,但非公众号内支付,WX_Native:扫码支付,一般在PC端支付,Alipay:支付宝支付,Balance:余额支付 | | |----param | 支付参数,WX支付方式,该参数返回微信wxPayJs支付调起微信所需的参数,WX_H5支付方式,该参数返回调起微信支付的连接,前端只需要访问一次该连接即可,WX_Native支付方式,该参数返回支付二维码连接,前端只需显示出改连接的图片即可,其它支付方式无此参数 | >获取当前登录会员推荐会员列表 ~~~[api] get:/index.php/member/Apimember/member_recommend_member_list int:type=0#显示类型 0:层级显示,1:并列显示 int:level=1#推荐层级数,获取level推荐层内的会员,1:直接推荐会员 <<< 并列显示 { "err": 0, "count": 10, "data": [ { "id": 2, "group_id": 1, "addtime": "2020-03-10 13:14:02", "logintime": "2020-03-10 13:14:02", "headpath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "nickname": "奶牛COWCMS", "birthday": 12345678910, "Loginip": "", "recommendid": 10, "login_type": "WX", "count": 1 }, { "id": 3, "group_id": 1, "addtime": "2020-03-10 13:14:02", "logintime": "2020-03-10 13:14:02", "headpath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "nickname": "奶牛COWCMS", "birthday": 12345678910, "Loginip": "", "recommendid": 1, "login_type": "WX", "count": 1 } ] } <<< 层级显示 { "err": 0, "count": 10, "data": [ { "id": 1, "group_id": 2, "addtime": 2020-03-10 13:14:02, "logintime": 2020-03-10 13:14:02, "headpath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "nickname": "奶牛COWCMS", "birthday": 12345678910, "Loginip": "", "recommendid": 10, "login_type": "WX", "count": 1, "recommend_user": [ { "id":3, "group_id": 1, "addtime": 2020-03-10 13:14:02, "logintime": 2020-03-10 13:14:02, "headpath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "nickname": "奶牛COWCMS", "birthday": 12345678910, "Loginip": "", "recommendid": 1, "login_type": "WX", "count": 0, "recommend_user": [ ] } ] } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 | 详情 | | --- | --- | | count | 推荐会员个数 | | data| 推荐会员数据 | | |----id | 用户id | | |---- addtime | 注册时间 | | |---- logintime | 登录时间 | | |----headpath | 用户头像 | | |---- nickname| 用户昵称 | | |---- birthday | 生日 | | |----Loginip | 登录ip | | |----login_type | 注册类型, WX:微信,QQ:qq,Alipay:阿里 | | |----recommendid| 上级会员id | | |----mobile| 会员手机号 | | |----count| 推荐会员个数 | | |----recommend_user| 下级会员数据 ,type为0是返回 |