充值推广币

# 接口文档-充值推广币 ## 说明 ``` ``` ### 请求参数 | 参数 | 说明 | 类型 | 备注 | 是否必填 | | ------- | -------- | ------ | ------------------- | -------- | | _handle | 处理类 | string | 固定值:OrderPage | 是 | | _method | 处理方法 | string | 固定值:Post| 是 | | token | 处理方法 | string | token | 是 | | uid | 处理方法 | string | uid | 是 | | packageId | 套餐id| string | | 是 | | packagemoney | 套餐金额| string | | 是 | | paytypeId | 支付方式编号固定值: 支付宝(alipay_wap)微信(wechat_wap)| string | | 是 | #### 请求地址 ``` 域名/api/index/ ``` ##### 返回值 ```json { "code": 1, "msg": "succeed", "data": "form表单" //app的data是一个url 尝试用webview打开 } ``` # 接口文档-获取公众号授权 ## 说明 ``` 如果判断为是微信浏览器了.同时浏览器地址上没有wxcode这个参数的话 就请求一下接口,接口返回个url地址跳转,然后还会跳回来 在浏览器参数中带着wxcode这个参数 ``` ### 请求参数 | 参数 | 说明 | 类型 | 备注 | 是否必填 | | ------- | -------- | ------ | ------------------- | -------- | | _handle | 处理类 | string | 固定值: OrderPage | 是 | | _method | 处理方法 | string | 固定值: WechatAuth | 是 | | url | 微信回调跳转地址 | string | | 是 | #### 请求地址 ``` 域名/api/index/ ``` ##### 返回值 如果code=1就跳转data里的地址 ```json {"code":1, "msg":"", "data":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6919929cb4481113&redirect_uri=http%3a%2f%2fpay.0wanwan.com%2fapi%2fpay%2fJSAPI.aspx&response_type=code&scope=snsapi_base&state=http%3a%2f%2fvip.0wanwan.com"} ```