确认收货发短信接口改名

This commit is contained in:
geng.tang@qq.com
2024-01-02 21:45:36 +08:00
parent ebd22b0eee
commit c6f3f47a80
2 changed files with 4 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ import request from '@/utils/request'
// api地址
const api = {
image: 'captcha/image',
sendSmsCode: '/sendSmsCaptcha'
sendSmsCaptcha: '/sendSmsCaptcha'
}
// 图形验证码
@@ -12,6 +12,6 @@ export function image() {
}
// 发送短信验证码
export const sendSmsCode = (data) => {
return request.post(api.sendSmsCode, data)
export const sendSmsCaptcha = (data) => {
return request.post(api.sendSmsCaptcha, data)
}

View File

@@ -73,7 +73,7 @@
receipt,
getOrder
} from '@/websoft/api/order.js'
import { sendSmsCode } from '@/api/captcha.js'
import { sendSmsCaptcha } from '@/api/captcha.js'
import { fileUrl } from '@/config.js'
import { isMobile } from '@/utils/verify'
@@ -181,7 +181,6 @@
})
return
}
console.log('that====: ');
sendSmsCaptcha({
phone: that.receiptPhone,
type: 'RECEIPT'