微信授权登录,获取授权凭证改为后端获取
This commit is contained in:
@@ -1,21 +1,13 @@
|
||||
import http from './http.js'
|
||||
let URL_CONFIG = '/jero-boot/'
|
||||
const UserApi = {
|
||||
// // 登录
|
||||
// login: (params) => http.post(`${URL_CONFIG}sys/login`, params),
|
||||
// // 获得公钥
|
||||
// getRSAPublicKey: (params) => http.get(`${URL_CONFIG}sys/getRSAPublicKey`, params),
|
||||
// // 图片的验证码
|
||||
// getImgCode: (params, urlParam) => http.get(`${URL_CONFIG}sys/randomImage/${urlParam}`, params),
|
||||
// // 退出
|
||||
// logout: (params) => http.post(`${URL_CONFIG}sys/logout`, params),
|
||||
// //修改密码
|
||||
// upDatePass:(params) => http.put(`${URL_CONFIG}sys/user/updatePassword`, params),
|
||||
/**
|
||||
* author: yaoyanan
|
||||
* **/
|
||||
// 获得公钥
|
||||
getRSAPublicKey: (params) => http.get(`${URL_CONFIG}sys/getRSAPublicKey`, params),
|
||||
// 获取微信登录凭证
|
||||
getWxLoginPromise: (params) => http.get(`${URL_CONFIG}company/jscode2session`, params),
|
||||
// 发送短信验证码
|
||||
sendCode: (params) => http.get(`${URL_CONFIG}company/sendVerificationCode`, params),
|
||||
// 手机短信登录
|
||||
@@ -75,4 +67,4 @@ const UserApi = {
|
||||
queryDataMemberList: (params) => http.get(`${URL_CONFIG}jero/memberProjectSubitem/pageCompany`, params),
|
||||
}
|
||||
|
||||
export default UserApi
|
||||
export default UserApi
|
||||
|
||||
Reference in New Issue
Block a user