多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## app当前账号绑定第三方用户 /** * app当前账号绑定第三方用户 * http_method post * @param string $platform 平台 enum('wechat','qq') * @param string $openid 第三方平台的开放对应应用的唯一ID * @param string $unionid 目前用于微信,当第三方平台绑定了微信才会出现,非必填 * @param string $access_token 网页授权接口调用凭证,注意:此access_token与基础支持的access_token不同 * @param string $expires_in access_token接口调用凭证超时时间,单位(秒) * @param string $refresh_token 用户刷新access_token * @param string $scope 用户授权的作用域,使用逗号(,)分隔 * @param string $city 第三方城市 * @param string $province 第三方省份 * @param string $nickname 昵称 * @param string $avatar 头像 * @param int $sex 1男 0女 * @param int $sex 性别 * @author 韩文博 * 为了前端方便,-1时请提示错误信息 */ +++ post:/User/accountBindOpenUser <<< success { "errcode": 0, "errmsg": "操作成功", "data": { "id": 102, "username": "13502176003", "password": "MDAwMDAwMDAwMLK6e6yxprqX", "phone": "13502176003", "nickname": "韩文博", "avatar": "http://mojimall.img-cn-beijing.aliyuncs.com/mojimall/20170214/37951.jpg", "access_token": "a12418fde0a744daf79bb6b2c4ec927c", "role": 0, "status": 1, "register_time": 1470982102, "last_login_time": 1490087512, "last_login_ip": "0.0.0.0", "email": null, "login_times": 291, "sex": 1, "qq": "", "user_type": 4, "invitation_code": "8be8e114", "alipay_account": "hanwen", "alipay_name": "韩文博", "province_id": null, "city_id": null, "area_id": null, "area_info": null, "address": null, "credit": null, "points": 26, "sinainfo": null, "sinaopenid": null, "qqinfo": null, "qq_openid": null, "available_predeposit": "0.00", "freeze_predeposit": "0.00", "last_request_time": null, "last_choose_city": null, "last_longitude": null, "last_latitude": null, "is_online": 0, "invitation_user_id": null, "city": null, "agent_pid": 0, "frozen_points": 0, "wechat_openid": "", "is_recommend": 1, "referee_code": "Ds7E4rBp", "referee": null, "only": null, "wechat_unionid": "", "qq_unionid": null, "message_count": 8, "message_read_count": 8 } } <<< error 这里填写错误的返回码 以此类推,每个状态使用 <<< 分割, 第一行添加状态名称 +++