Files
debtH5/apis/interfaces/authUrl.js
2023-06-21 17:04:42 +08:00

30 lines
493 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 手太欠
* 愿这世界都如故事里一样 美好而动人~
*/
import { request } from '../index'
// 微信授权登录(获取跳转地址)
const authFollow = (data) => {
return request({
url : 'user/auth/official/url',
data: data
})
}
// 微信登录传入code
const wechatCode = (data) => {
return request({
url : 'user/auth/official/openid',
method: 'POST',
data: data
})
}
export {
authFollow,
wechatCode
}