完善产品购买页面,抽取公共组件,优化导航链接
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
// 验证验证码函数
|
||||
import {cookies} from 'next/headers'
|
||||
import crypto from 'crypto'
|
||||
import {ApiResponse, call} from '@/lib/api'
|
||||
import {ApiResponse} from '@/lib/api'
|
||||
import { callByDevice } from '@/actions/base'
|
||||
|
||||
|
||||
export interface VerifyParams {
|
||||
@@ -30,7 +31,7 @@ export default async function verify(props: VerifyParams): Promise<ApiResponse>
|
||||
}
|
||||
|
||||
// 请求发送短信
|
||||
return await call('/api/auth/verify/sms', {
|
||||
return await callByDevice('/api/auth/verify/sms', {
|
||||
phone: props.phone,
|
||||
purpose: 0,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user