接口名称:

获取认证链接

接口描述:

获取认证链接

请求路径:

/pay/wechat/getAccessTokenUrl

请求方式:

GET

请求参数:

  • Header
参数名 参数值 必填 描述
Content-Type application/x-www-form-urlencoded Y
  • Param
参数名 类型 必选 描述
channelId String Y 支付方式
redirectUrl String Y 回调地址
  • Body

请求示例:

channelId=wx_js_1&redirectUrl=http://pay.unifound.net/venue/site.html#/login

返回参数:

参数名 类型 必选 描述
data String N 响应内容
code int N 响应码
message String N 响应信息

返回示例:

{
    "code": 0,
    "message": "请求成功",
    "data": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx399a60eb3f4f1842&redirect_uri=http%3A%2F%2Fpay.unifound.net%2Fvenue%2Fsite.html%23%2Flogin&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
}
文档更新时间: 2025-06-13 11:11   作者:吴温立