修复验证码
This commit is contained in:
@@ -673,8 +673,9 @@ interface SendSms{
|
||||
msg: string;
|
||||
}
|
||||
|
||||
export async function sendsms(phone: string, type: number): Promise<boolean>{
|
||||
const res = await post<SendSms>("SendSms", {phone, type});
|
||||
export async function sendsms(code: string ,phone: string): Promise<boolean>{
|
||||
const type = code == '86' ? 0 : 1;
|
||||
const res = await post<SendSms>("SendSms", {phone: code + phone, type});
|
||||
console.log(res);
|
||||
if(res.code == 0){
|
||||
message.success(res.msg);
|
||||
|
||||
Reference in New Issue
Block a user