import{g as e,U as s,h as t,Z as o,p as a,s as n}from"./index-72b896ac.js";const i=async(i,r,c={},p=1)=>{const d={"content-type":"application/json"};return new Promise(((p,m)=>{e({title:"",mask:!0});s({url:"https://education-manage-backend.lastbs.com"+i,method:r||"GET",header:d,timeout:1e4,data:c||{},success:e=>{t();const s=e.data;200==e.statusCode?499===s.code?setTimeout((()=>{o(),a({url:"/pages/index/index"})}),1500):200===s.code||0===s.code||200===s.status?p(s):(n({title:s.message,icon:"none"}),m(s)):(n({title:s.message||"网络连接失败，请稍后重试",icon:"none"}),m(s))},fail:e=>{t(),n({title:res.message||"网络连接失败，请稍后重试",icon:"none"}),m(message)},complete(){}})}))},r=(e,s)=>i("/v1/user/mobilephone-test","post",e,s),c=(e,s)=>i("/v1/user/send-verify-code","post",e,s),p=(e,s)=>i("/v1/user/list-provinces","post",e,s),d=(e,s)=>i("/v1/user/verify-code","post",e,s),m=(e,s)=>i("/v1/user/pref-user","post",e,s),u=(e,s)=>i("/v1/user/register","post",e,s);export{p as a,r as m,m as p,u as r,c as s,d as v};
