var e=Object.defineProperty,t=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,r=(t,i,a)=>i in t?e(t,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[i]=a,o=(e,o)=>{for(var s in o||(o={}))i.call(o,s)&&r(e,s,o[s]);if(t)for(var s of t(o))a.call(o,s)&&r(e,s,o[s]);return e};import{y as s,z as n,g as p,A as u,s as l,B as c}from"./index.5e14dbb8.js";const d=["/api/authorize/obtainToken"];var h=(e,t,i)=>(s("request",{invoke(e){if(n({title:"加载中..."}),!p("uni-token")&&!d.includes(e.url))return new Promise(((e,t)=>(u({url:"/api/authorize/obtainToken",method:"POST",data:{ticket:"uni-app"},success:e=>{200===e.statusCode&&(l("uni-token",e.data.data.token),window.location.href=window.location.href+"?t_reload="+(new Date).getTime())},fail(e){t(e)}}),c(),!1)));e.header={"content-type":"POST"===e.method?"application/json":"application/x-www-form-urlencoded","X-Authorization":p("uni-token")}},success(e){c(),console.log(e)},fail(e){console.log("interceptor-fail",e),console.log("请求失败"),c()},complete(e){c()}}),new Promise(((a,r)=>{u({url:e,method:t,data:o({},i),success(e){a(e.data)},fail(e){r(e)},complete(){c()}})})));let f={dev:{base_url:"https://mdev.zuihuibi.cn",api_url:"https://mdev.zuihuibi.cn/api",sfp_url:"https://mdev.zuihuibi.cn/api/sfp"},stage:{base_url:"https://mstage.zuihuibi.cn",api_url:"https://mstage.zuihuibi.cn/api",sfp_url:"https://mstage.zuihuibi.cn/api/sfp"},prod:{base_url:"https://m.zuihuibi.cn",api_url:"https://m.zuihuibi.cn/api",sfp_url:"https://m.zuihuibi.cn/api/sfp"}}.dev.base_url;var m={irrAndSimpleCalcute:e=>h(`${f}/api/sfp/calcuteUtil/irrAndSimpleCalcute`,"POST",e),getWxUserInfo:e=>h(`${f}/api/getWxUserInfo`,"POST",e),queryIrrAndSimple:e=>h(`${f}/api/sfp/calcuteUtil/queryIrrAndSimple`,"POST",e)},b=(e,t)=>{const i=e.__vccOpts||e;for(const[a,r]of t)i[a]=r;return i};export{b as _,m as a};
