mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-13 02:25:06 +08:00
1. code review 后台的短信验证码登陆
2. 解决 SQL Server LIMIT 1 存在报错的问题
This commit is contained in:
@ -77,24 +77,21 @@ export function socialBindLogin(type, code, state, username, password) {
|
||||
}
|
||||
|
||||
// 获取登录验证码
|
||||
export function sendLoginSmsCode(mobile,scene,uuid,code) {
|
||||
var datas = {
|
||||
mobile
|
||||
,scene
|
||||
,uuid,
|
||||
code
|
||||
};
|
||||
export function sendSmsCode(mobile, scene) {
|
||||
return request({
|
||||
url: '/system/send-login-sms-code',
|
||||
url: '/system/auth/send-sms-code',
|
||||
method: 'post',
|
||||
data: datas
|
||||
data: {
|
||||
mobile,
|
||||
scene
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 短信验证码登录
|
||||
export function smsLogin(mobile, code) {
|
||||
return request({
|
||||
url: '/system/sms-login',
|
||||
url: '/system/auth/sms-login',
|
||||
method: 'post',
|
||||
data: {
|
||||
mobile,
|
||||
|
Reference in New Issue
Block a user