ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
>获取当前登陆的会员信息 ~~~[api] get:/index.php/member/Apimember/member_getInfo <<< success { "err": 0, "data": { "id": 1, "group_id": 1, "group_name": "会员组名称", "addtime": 12345678910, "logintime": 123465678910, "endtime": 123465678910, //会员组到期日期 "headpath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "nickname": "奶牛COWCMS", "birthday": 12345678910, "Loginip": "", "recommendid": 10, "login_type": "WX" } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >会员升级,会员组列表 ~~~[api] get:/index.php/member/Apimember/member_group_list <<< success { "err": 0, "count": 1, "data": [ { "id": 1, "groupname": "VIP1", "level": 1, "maxnum": 0, "describe": '会员组说明', "buy_price": [ { "type": "days", "num": 3, "point_type": "money", "point": 10, "point_name": "人民币", "point_unit": "元" } ] } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >购买会员组 ~~~[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:余额支付 <<< 微信支付 { "err": 0, "data": { "pay_type": "WX", } } <<< 余额支付 { "err": 0, "data": { "pay_type": "Balance", } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >获取当前登录会员推荐会员列表,并列显示 ~~~[api] get:/index.php/member/Apimember/member_recommend_member_list int:level=1#推荐层级数,1:表示直接推荐会员,2:表示间接推荐会员 <<< success { "err": 0, "count": 10, "data": [ { "id": 1, "group_id": 1, "addtime": 12345678910, "logintime": 123465678910, "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": 2, "group_id": 1, "addtime": 12345678910, "logintime": 123465678910, "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 } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >获取当前登录会员的推荐会员列表,层级显示 ~~~[api] get:/index.php/member/Apimember/member_recommend_member_level_list int:level=1#推荐层级数,0:全部推荐会员,其它数字表示所在层级的会员 <<< success { "err": 0, "count": 10, "data": [ { "id": 1, "group_id": 1, "addtime": 12345678910, "logintime": 123465678910, "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": 2, "group_id": 1, "addtime": 12345678910, "logintime": 123465678910, "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": "错误信息" } ~~~