- 商城
- 账号
- 上传文件
- 购物车
- 收货地址
- 商品
- 分销
- 营销
- 首页
- 订单
- 售后
- 收藏
- 用户
- 评论
- 广告
- 分享
- 菜单
- 消息订阅
- 消息中心
- 足迹气泡
- 短信
- 地区
- pc端接口
获取向微信请求code的链接
GET
/api/account/codeurl
请求参数
Query 参数
url
string
前端当前url
Header 参数
token
string
可选
默认值:
{{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/account/codeurl' \
--header 'token: {{token}}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
url
string
codeurl
show
integer
必需
time
string
必需
示例
{
"code": 1,
"msg": "获取成功",
"data": {
"url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx9d46fbcce2d26482&redirect_uri=http%3A%2F%2Flikeb2b2c.yixiangonline.com%2Fmobile%2F&response_type=code&scope=snsapi_userinfo&state=6a22bbb6f7661a1377bc815d31b8b2f4&connect_redirect=1#wechat_redirect"
},
"show": 0,
"time": "0.103647"
}