爱尚家接口合并到cms-api.websoft.top
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import http from './index.js';
|
||||
import {
|
||||
serverUrl,
|
||||
apiUrl,
|
||||
fileUrl,
|
||||
accessKey,
|
||||
@@ -37,18 +38,18 @@ export const getCaptcha = (params) => http.get('/captcha', {
|
||||
})
|
||||
|
||||
// 发送短信验证码
|
||||
export const sendSmsCaptcha = (params) => http.post('/open/sendSmsCaptcha', {
|
||||
export const sendSmsCaptcha = (params) => http.post(serverUrl + '/open/sendSmsCaptcha', {
|
||||
params
|
||||
})
|
||||
|
||||
// 获取微信openId
|
||||
export const getWxOpenId = (data) => http.post('/wx-login/getWxOpenId', data)
|
||||
export const getWxOpenId = (data) => http.post(serverUrl + '/wx-login/getWxOpenId', data)
|
||||
|
||||
// 支付宝授权码换取userId
|
||||
export const getAuthCode = (data) => http.post('/open/login-alipay/getAuthCode', data)
|
||||
|
||||
// 微信手机号码登录
|
||||
export const loginMpWxMobile = (data) => http.post('/wx-login/loginByMpWxPhone', data)
|
||||
export const loginMpWxMobile = (data) => http.post(serverUrl + '/wx-login/loginByMpWxPhone', data)
|
||||
|
||||
// 获取支付宝手机号码
|
||||
export const getPhoneNumber = (data, config) => http.post('/shop/payment/getPhoneNumber', data, config)
|
||||
|
||||
Reference in New Issue
Block a user