From 07ef58effb8a570cd8a917e5a0c4d2b57e0fd5d3 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期三, 20 三月 2024 13:43:29 +0800 Subject: [PATCH] 2024年03月20日13:43:24 --- app/src/main/assets/apps/__UNI__A2E7300/www/app-service.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/app/src/main/assets/apps/__UNI__A2E7300/www/app-service.js b/app/src/main/assets/apps/__UNI__A2E7300/www/app-service.js index a23a7e3..95ef48c 100644 --- a/app/src/main/assets/apps/__UNI__A2E7300/www/app-service.js +++ b/app/src/main/assets/apps/__UNI__A2E7300/www/app-service.js @@ -25,7 +25,7 @@ * (c) 2023 Eduardo San Martin Morote * @license MIT */ -let Bt;const _t=e=>Bt=e,It=Symbol();function Rt(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var Pt,Lt;(Lt=Pt||(Pt={})).direct="direct",Lt.patchObject="patch object",Lt.patchFunction="patch function";const xt=()=>{};function Mt(l,a,t,n=xt){l.push(a);const o=()=>{const e=l.indexOf(a);e>-1&&(l.splice(e,1),n())};return!t&&e.getCurrentScope()&&e.onScopeDispose(o),o}function Ot(e,...l){e.slice().forEach((e=>{e(...l)}))}function Vt(l,a){l instanceof Map&&a instanceof Map&&a.forEach(((e,a)=>l.set(a,e))),l instanceof Set&&a instanceof Set&&a.forEach(l.add,l);for(const t in a){if(!a.hasOwnProperty(t))continue;const n=a[t],o=l[t];Rt(o)&&Rt(n)&&l.hasOwnProperty(t)&&!e.isRef(n)&&!e.isReactive(n)?l[t]=Vt(o,n):l[t]=n}return l}const Ut=Symbol();const{assign:Ht}=Object;function Ft(l,a,t={},n,o,r){let u;const i=Ht({actions:{}},t),v={deep:!0};let d,s,p,c=e.markRaw([]),m=e.markRaw([]);const b=n.state.value[l];let N;function C(a){let t;d=s=!1,"function"==typeof a?(a(n.state.value[l]),t={type:Pt.patchFunction,storeId:l,events:p}):(Vt(n.state.value[l],a),t={type:Pt.patchObject,payload:a,storeId:l,events:p});const o=N=Symbol();e.nextTick().then((()=>{N===o&&(d=!0)})),s=!0,Ot(c,t,n.state.value[l])}r||b||(n.state.value[l]={}),e.ref({});const h=r?function(){const{state:e}=t,l=e?e():{};this.$patch((e=>{Ht(e,l)}))}:xt;function g(e,a){return function(){_t(n);const t=Array.from(arguments),o=[],r=[];let u;Ot(m,{args:t,name:e,store:y,after:function(e){o.push(e)},onError:function(e){r.push(e)}});try{u=a.apply(this&&this.$id===l?this:y,t)}catch(i){throw Ot(r,i),i}return u instanceof Promise?u.then((e=>(Ot(o,e),e))).catch((e=>(Ot(r,e),Promise.reject(e)))):(Ot(o,u),u)}}const f={_p:n,$id:l,$onAction:Mt.bind(null,m),$patch:C,$reset:h,$subscribe(a,t={}){const o=Mt(c,a,t.detached,(()=>r())),r=u.run((()=>e.watch((()=>n.state.value[l]),(e=>{("sync"===t.flush?s:d)&&a({storeId:l,type:Pt.direct,events:p},e)}),Ht({},v,t))));return o},$dispose:function(){u.stop(),c=[],m=[],n._s.delete(l)}},y=e.reactive(f);n._s.set(l,y);const S=n._e.run((()=>(u=e.effectScope(),u.run((()=>a())))));for(const E in S){const a=S[E];if(e.isRef(a)&&(A=a,!e.isRef(A)||!A.effect)||e.isReactive(a))r||(!b||Rt(w=a)&&w.hasOwnProperty(Ut)||(e.isRef(a)?a.value=b[E]:Vt(a,b[E])),n.state.value[l][E]=a);else if("function"==typeof a){const e=g(E,a);S[E]=e,i.actions[E]=a}}var w,A;return Ht(y,S),Ht(e.toRaw(y),S),Object.defineProperty(y,"$state",{get:()=>n.state.value[l],set:e=>{C((l=>{Ht(l,e)}))}}),n._p.forEach((e=>{Ht(y,u.run((()=>e({store:y,app:n._a,pinia:n,options:i}))))})),b&&r&&t.hydrate&&t.hydrate(y.$state,b),d=!0,s=!0,y}function Gt(l,a,t){let n,o;const r="function"==typeof a;function u(l,t){const u=e.getCurrentInstance();(l=l||u&&e.inject(It,null))&&_t(l),(l=Bt)._s.has(n)||(r?Ft(n,a,o,l):function(l,a,t,n){const{state:o,actions:r,getters:u}=a,i=t.state.value[l];let v;v=Ft(l,(function(){i||(t.state.value[l]=o?o():{});const a=e.toRefs(t.state.value[l]);return Ht(a,r,Object.keys(u||{}).reduce(((a,n)=>(a[n]=e.markRaw(e.computed((()=>{_t(t);const e=t._s.get(l);return u[n].call(e,e)}))),a)),{}))}),a,t,0,!0)}(n,o,l));return l._s.get(n)}return"string"==typeof l?(n=l,o=r?t:a):(o=l,n=l.id),u.$id=n,u}const Kt=Gt("app",{state:()=>({accessToken:uni.getStorageSync("accessToken"),expiration:uni.getStorageSync("expiration"),refreshToken:uni.getStorageSync("refreshToken"),userId:uni.getStorageSync("userId"),account:uni.getStorageSync("account"),serverAddress:uni.getStorageSync("serverAddress"),appKey:uni.getStorageSync("appKey"),appSecret:uni.getStorageSync("appSecret")}),actions:{setAccountData(e){this.setAccessToken(e.accessToken),this.setExpiration(e.expiration),this.setRefreshToken(e.refreshToken),this.setUserId(e.userId),this.setAccount(e.account),this.setServerAddress(e.serverAddress),this.setAppKey(e.appKey),this.setAppSecret(e.appSecret)},setAccessToken(e){this.accessToken=e,uni.setStorageSync("accessToken",e)},setExpiration(e){this.expiration=e,uni.setStorageSync("expiration",e)},setRefreshToken(e){this.refreshToken=e,uni.setStorageSync("refreshToken",e)},setUserId(e){this.userId=e,uni.setStorageSync("userIdIot",e)},setAccount(e){this.account=e,uni.setStorageSync("accountIot",e)},setServerAddress(e){this.serverAddress=e,uni.setStorageSync("serverAddress",e)},setAppKey(e){this.appKey=e,uni.setStorageSync("appKey",e)},setAppSecret(e){this.appSecret=e,uni.setStorageSync("appSecret",e)},removeAllAccountData(){uni.clearStorageSync(),this.accessToken="",this.expiration="",this.refreshToken="",this.userId="",this.account="",this.serverAddress="",this.appKey="",this.appSecret=""}}}),zt=new class{addRequest(e){const l=Tl.CancelToken.source();e.cancelToken=l.token;const a=`${e.method}:${e.url}`;Pl.set(a,l)}removeAllRequest(){Pl.forEach((e=>{e&&e.cancel()})),Pl.clear()}removeRequest(e){a("log","at http/AxiosCancelToken.ts:42","removereq");const l=`${e.method}:${e.url}`;if(Pl.has(l)){const e=Pl.get(l);e&&e.cancel(),Pl.delete(l)}}};let jt=null;Tl.defaults.timeout=6e4;let Wt=!1,Jt=[];class $t{static server(e="https://test-gz.hdlcontrol.com",l="none"){jt||(jt=Kt());return $t.create("http://47.114.131.143:27199",l)}static create(e,l="none"){const t=Tl.create({withCredentials:!0,baseURL:e,adapter:Rl});return t.interceptors.request.use((e=>{jt||(jt=Kt());const a=e.data||{};let t=jt.appKey||"CTBGMNUV",n=jt.appSecret||"CTBGMNVLCTBGMNWB";switch(e.data=function(e,l,a){e.appKey=l;const t=Math.round((new Date).getTime()/1e3);e.timestamp=t;const n=Object.keys(e).sort(),o={};for(let i=0;i<n.length;i++)"object"!=typeof e[n[i]]&&""!==e[n[i]]&&void 0!==e[n[i]]&&(o[n[i]]=e[n[i]]);o.sign&&delete o.sign;const r=decodeURIComponent(Et.stringify(o)+a),u=Dt(r).toString();return e.sign=u,e}(a,t,n),jt.accessToken&&(e.headers.Authorization=`Bearer ${jt.accessToken}`),e.headers["Content-Type"]="application/json",e.headers.language=uni.getStorageSync("language")||"zh",e.headers["x-lbs-version"]="hdl-yt",l){case"all":zt.removeAllRequest();break;case"same":zt.removeRequest(e)}return zt.addRequest(e),e}),(e=>Promise.reject(e))),t.interceptors.response.use((async e=>{if(a("log","at http/HttpClient.ts:86","interceptors",e.data),0===e.data.code)return e;if(10001==e.data.code){const{config:l}=e;if(Wt)return new Promise((e=>{Jt.push((()=>{e(t.request(l))}))}));{Wt=!0;const e=await t.post("/smart-footstone/user/oauth/login",{refreshToken:jt.refreshToken,grantType:"refresh_token",platform:"APP"},{});if(0===e.data.code){const a=e.data.data.accessToken,t=e.data.data.refreshToken;jt.setAccessToken(a),jt.setRefreshToken(t),l.data=JSON.parse(l.data),Jt.forEach((e=>e())),Jt=[],Wt=!1}else e.data.message&&uni.showToast({title:e.data.message,icon:"none"});return t.request(l)}}{const l={};e.data.code&&(l.code=e.data.code),e.data.message?l.message=e.data.message:l.message=e.status+"鏈嶅姟鍣ㄥ唴閮ㄥ紓甯�",uni.showToast({title:l.message,icon:"none"}),l.response=e.data}return e}),(e=>{if(a("log","at http/HttpClient.ts:146","errreq",e),uni.hideLoading(),0!==e.status&&!e.status){const l=e;return l.msg=l.errMsg||"璇锋鏌ョ綉缁滆缃�",Promise.reject(l)}switch(e.status){case 1:e.msg="缃戠粶瓒呮椂!";break;case 403:e.msg=`${e.status} 绂佹璁块棶!`;break;case 500:e.msg=`${e.status} 鏈嶅姟鍐呴儴寮傚父!`;break;case 502:e.msg=`${e.status} 鏈嶅姟鍣ㄦ殏涓嶅彲鐢�!`;break;case 503:e.msg=`${e.status} 鏈嶅姟鍣ㄥ崌绾т腑!`;break;case 404:e.msg=`${e.status} 鏈嶅姟鍣ㄦ棤鍥炲簲!`;break;default:e.msg=e.data.message}return uni.showToast({title:e.msg,icon:"none"}),Promise.reject(e)})),t}}function Zt(e){return $t.server().post("/home-wisdom/app/device/inverter/allInfo",e,{}).then((e=>e.data))}function Yt(e){return $t.server().post("/home-wisdom/app/device/inverter/statistics/energy",e,{}).then((e=>e.data))}function qt(e){return $t.server().post("/home-wisdom/app/device/inverter/statistics/earnings",e,{}).then((e=>e.data))}function Qt(e){return $t.server().post("/home-wisdom/app/device/inverter/electrovalenceSet",e,{}).then((e=>e.data))}function Xt(e){return $t.server().post("/home-wisdom/app/device/inverter/statistics/useElectricityAnalyseNew",e,{}).then((e=>e.data))}function en(e){return $t.server().post("/home-wisdom/app/powerStation/childDevices",e,{}).then((e=>e.data))}function ln(e){return $t.server().post("/basis-footstone/app/weather/getWeatherNowByHouse",e,{}).then((e=>e.data))}const an=Gt("powerStation",{state:()=>({homeId:"",totalElectricityPvToday:"",earningsToday:""}),actions:{setHomeId(e){this.homeId=e},setTotalElectricityPvToday(e){this.totalElectricityPvToday=e},setEarningsToday(e){this.earningsToday=e}}});function tn(e){let l="";return"100"==e||"150"==e?l="/static/image/weatherIcon/ic_weather_sunny.png":"104"==e||"154"==e?l="/static/image/weatherIcon/ic_weather_cloudy.png":"101"==e||"103"==e||"151"==e||"153"==e?l="/static/image/weatherIcon/ic_weather_sunny_to_cloudy.png":"302"==e||"303"==e?l="/static/image/weatherIcon/ic_weather_thunderstorm.png":"304"==e?l="/static/image/weatherIcon/ic_weather_hail.png":parseInt(e)>=300&&parseInt(e)<400?l="/static/image/weatherIcon/ic_weather_rainy.png":"404"==e||"405"==e||"406"==e||"456"==e?l="/static/image/weatherIcon/ic_weather_rainy_and_snow.png":parseInt(e)>=400&&parseInt(e)<500?l="/static/image/weatherIcon/ic_weather_snow.png":"500"==e||"501"==e||"509"==e||"510"==e||"514"==e||"515"==e?l="/static/image/weatherIcon/ic_weather_fog.png":"502"==e||"511"==e||"512"==e||"513"==e?l="/static/image/weatherIcon/ic_weather_haze.png":"503"!=e&&"507"!=e&&"508"!=e||(l="/static/image/weatherIcon/ic_weather_sand_and_dust.png"),l} +let Bt;const _t=e=>Bt=e,It=Symbol();function Rt(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var Pt,Lt;(Lt=Pt||(Pt={})).direct="direct",Lt.patchObject="patch object",Lt.patchFunction="patch function";const xt=()=>{};function Mt(l,a,t,n=xt){l.push(a);const o=()=>{const e=l.indexOf(a);e>-1&&(l.splice(e,1),n())};return!t&&e.getCurrentScope()&&e.onScopeDispose(o),o}function Ot(e,...l){e.slice().forEach((e=>{e(...l)}))}function Vt(l,a){l instanceof Map&&a instanceof Map&&a.forEach(((e,a)=>l.set(a,e))),l instanceof Set&&a instanceof Set&&a.forEach(l.add,l);for(const t in a){if(!a.hasOwnProperty(t))continue;const n=a[t],o=l[t];Rt(o)&&Rt(n)&&l.hasOwnProperty(t)&&!e.isRef(n)&&!e.isReactive(n)?l[t]=Vt(o,n):l[t]=n}return l}const Ut=Symbol();const{assign:Ht}=Object;function Ft(l,a,t={},n,o,r){let u;const i=Ht({actions:{}},t),v={deep:!0};let d,s,p,c=e.markRaw([]),m=e.markRaw([]);const b=n.state.value[l];let N;function C(a){let t;d=s=!1,"function"==typeof a?(a(n.state.value[l]),t={type:Pt.patchFunction,storeId:l,events:p}):(Vt(n.state.value[l],a),t={type:Pt.patchObject,payload:a,storeId:l,events:p});const o=N=Symbol();e.nextTick().then((()=>{N===o&&(d=!0)})),s=!0,Ot(c,t,n.state.value[l])}r||b||(n.state.value[l]={}),e.ref({});const h=r?function(){const{state:e}=t,l=e?e():{};this.$patch((e=>{Ht(e,l)}))}:xt;function g(e,a){return function(){_t(n);const t=Array.from(arguments),o=[],r=[];let u;Ot(m,{args:t,name:e,store:y,after:function(e){o.push(e)},onError:function(e){r.push(e)}});try{u=a.apply(this&&this.$id===l?this:y,t)}catch(i){throw Ot(r,i),i}return u instanceof Promise?u.then((e=>(Ot(o,e),e))).catch((e=>(Ot(r,e),Promise.reject(e)))):(Ot(o,u),u)}}const f={_p:n,$id:l,$onAction:Mt.bind(null,m),$patch:C,$reset:h,$subscribe(a,t={}){const o=Mt(c,a,t.detached,(()=>r())),r=u.run((()=>e.watch((()=>n.state.value[l]),(e=>{("sync"===t.flush?s:d)&&a({storeId:l,type:Pt.direct,events:p},e)}),Ht({},v,t))));return o},$dispose:function(){u.stop(),c=[],m=[],n._s.delete(l)}},y=e.reactive(f);n._s.set(l,y);const S=n._e.run((()=>(u=e.effectScope(),u.run((()=>a())))));for(const E in S){const a=S[E];if(e.isRef(a)&&(A=a,!e.isRef(A)||!A.effect)||e.isReactive(a))r||(!b||Rt(w=a)&&w.hasOwnProperty(Ut)||(e.isRef(a)?a.value=b[E]:Vt(a,b[E])),n.state.value[l][E]=a);else if("function"==typeof a){const e=g(E,a);S[E]=e,i.actions[E]=a}}var w,A;return Ht(y,S),Ht(e.toRaw(y),S),Object.defineProperty(y,"$state",{get:()=>n.state.value[l],set:e=>{C((l=>{Ht(l,e)}))}}),n._p.forEach((e=>{Ht(y,u.run((()=>e({store:y,app:n._a,pinia:n,options:i}))))})),b&&r&&t.hydrate&&t.hydrate(y.$state,b),d=!0,s=!0,y}function Gt(l,a,t){let n,o;const r="function"==typeof a;function u(l,t){const u=e.getCurrentInstance();(l=l||u&&e.inject(It,null))&&_t(l),(l=Bt)._s.has(n)||(r?Ft(n,a,o,l):function(l,a,t,n){const{state:o,actions:r,getters:u}=a,i=t.state.value[l];let v;v=Ft(l,(function(){i||(t.state.value[l]=o?o():{});const a=e.toRefs(t.state.value[l]);return Ht(a,r,Object.keys(u||{}).reduce(((a,n)=>(a[n]=e.markRaw(e.computed((()=>{_t(t);const e=t._s.get(l);return u[n].call(e,e)}))),a)),{}))}),a,t,0,!0)}(n,o,l));return l._s.get(n)}return"string"==typeof l?(n=l,o=r?t:a):(o=l,n=l.id),u.$id=n,u}const Kt=Gt("app",{state:()=>({accessToken:uni.getStorageSync("accessToken"),expiration:uni.getStorageSync("expiration"),refreshToken:uni.getStorageSync("refreshToken"),userId:uni.getStorageSync("userId"),account:uni.getStorageSync("account"),serverAddress:uni.getStorageSync("serverAddress"),appKey:uni.getStorageSync("appKey"),appSecret:uni.getStorageSync("appSecret")}),actions:{setAccountData(e){this.setAccessToken(e.accessToken),this.setExpiration(e.expiration),this.setRefreshToken(e.refreshToken),this.setUserId(e.userId),this.setAccount(e.account),this.setServerAddress(e.serverAddress),this.setAppKey(e.appKey),this.setAppSecret(e.appSecret)},setAccessToken(e){this.accessToken=e,uni.setStorageSync("accessToken",e)},setExpiration(e){this.expiration=e,uni.setStorageSync("expiration",e)},setRefreshToken(e){this.refreshToken=e,uni.setStorageSync("refreshToken",e)},setUserId(e){this.userId=e,uni.setStorageSync("userIdIot",e)},setAccount(e){this.account=e,uni.setStorageSync("accountIot",e)},setServerAddress(e){this.serverAddress=e,uni.setStorageSync("serverAddress",e)},setAppKey(e){this.appKey=e,uni.setStorageSync("appKey",e)},setAppSecret(e){this.appSecret=e,uni.setStorageSync("appSecret",e)},removeAllAccountData(){uni.clearStorageSync(),this.accessToken="",this.expiration="",this.refreshToken="",this.userId="",this.account="",this.serverAddress="",this.appKey="",this.appSecret=""}}}),zt=new class{addRequest(e){const l=Tl.CancelToken.source();e.cancelToken=l.token;const a=`${e.method}:${e.url}`;Pl.set(a,l)}removeAllRequest(){Pl.forEach((e=>{e&&e.cancel()})),Pl.clear()}removeRequest(e){a("log","at http/AxiosCancelToken.ts:42","removereq");const l=`${e.method}:${e.url}`;if(Pl.has(l)){const e=Pl.get(l);e&&e.cancel(),Pl.delete(l)}}};let jt=null;Tl.defaults.timeout=6e4;let Wt=!1,Jt=[];class $t{static server(e="https://test-gz.hdlcontrol.com",l="none"){jt||(jt=Kt());const a=jt.serverAddress||"https://test-gz.hdlcontrol.com";return $t.create(a,l)}static create(e,l="none"){const t=Tl.create({withCredentials:!0,baseURL:e,adapter:Rl});return t.interceptors.request.use((e=>{jt||(jt=Kt());const a=e.data||{};let t=jt.appKey||"CTBGMNUV",n=jt.appSecret||"CTBGMNVLCTBGMNWB";switch(e.data=function(e,l,a){e.appKey=l;const t=Math.round((new Date).getTime()/1e3);e.timestamp=t;const n=Object.keys(e).sort(),o={};for(let i=0;i<n.length;i++)"object"!=typeof e[n[i]]&&""!==e[n[i]]&&void 0!==e[n[i]]&&(o[n[i]]=e[n[i]]);o.sign&&delete o.sign;const r=decodeURIComponent(Et.stringify(o)+a),u=Dt(r).toString();return e.sign=u,e}(a,t,n),jt.accessToken&&(e.headers.Authorization=`Bearer ${jt.accessToken}`),e.headers["Content-Type"]="application/json",e.headers.language=uni.getStorageSync("language")||"zh",l){case"all":zt.removeAllRequest();break;case"same":zt.removeRequest(e)}return zt.addRequest(e),e}),(e=>Promise.reject(e))),t.interceptors.response.use((async e=>{if(a("log","at http/HttpClient.ts:84","interceptors",e.data),0===e.data.code)return e;if(10001==e.data.code){const{config:l}=e;if(Wt)return new Promise((e=>{Jt.push((()=>{e(t.request(l))}))}));{Wt=!0;const e=await t.post("/smart-footstone/user/oauth/login",{refreshToken:jt.refreshToken,grantType:"refresh_token",platform:"APP"},{});if(0===e.data.code){const a=e.data.data.accessToken,t=e.data.data.refreshToken;jt.setAccessToken(a),jt.setRefreshToken(t),l.data=JSON.parse(l.data),Jt.forEach((e=>e())),Jt=[],Wt=!1}else e.data.message&&uni.showToast({title:e.data.message,icon:"none"});return t.request(l)}}{const l={};e.data.code&&(l.code=e.data.code),e.data.message?l.message=e.data.message:l.message=e.status+"鏈嶅姟鍣ㄥ唴閮ㄥ紓甯�",uni.showToast({title:l.message,icon:"none"}),l.response=e.data}return e}),(e=>{if(a("log","at http/HttpClient.ts:144","errreq",e),uni.hideLoading(),0!==e.status&&!e.status){const l=e;return l.msg=l.errMsg||"璇锋鏌ョ綉缁滆缃�",Promise.reject(l)}switch(e.status){case 1:e.msg="缃戠粶瓒呮椂!";break;case 403:e.msg=`${e.status} 绂佹璁块棶!`;break;case 500:e.msg=`${e.status} 鏈嶅姟鍐呴儴寮傚父!`;break;case 502:e.msg=`${e.status} 鏈嶅姟鍣ㄦ殏涓嶅彲鐢�!`;break;case 503:e.msg=`${e.status} 鏈嶅姟鍣ㄥ崌绾т腑!`;break;case 404:e.msg=`${e.status} 鏈嶅姟鍣ㄦ棤鍥炲簲!`;break;default:e.msg=e.data.message}return uni.showToast({title:e.msg,icon:"none"}),Promise.reject(e)})),t}}function Zt(e){return $t.server().post("/home-wisdom/app/device/inverter/allInfo",e,{}).then((e=>e.data))}function Yt(e){return $t.server().post("/home-wisdom/app/device/inverter/statistics/energy",e,{}).then((e=>e.data))}function qt(e){return $t.server().post("/home-wisdom/app/device/inverter/statistics/earnings",e,{}).then((e=>e.data))}function Qt(e){return $t.server().post("/home-wisdom/app/device/inverter/electrovalenceSet",e,{}).then((e=>e.data))}function Xt(e){return $t.server().post("/home-wisdom/app/device/inverter/statistics/useElectricityAnalyseNew",e,{}).then((e=>e.data))}function en(e){return $t.server().post("/home-wisdom/app/powerStation/childDevices",e,{}).then((e=>e.data))}function ln(e){return $t.server().post("/basis-footstone/app/weather/getWeatherNowByHouse",e,{}).then((e=>e.data))}const an=Gt("powerStation",{state:()=>({homeId:"",totalElectricityPvToday:"",earningsToday:""}),actions:{setHomeId(e){this.homeId=e},setTotalElectricityPvToday(e){this.totalElectricityPvToday=e},setEarningsToday(e){this.earningsToday=e}}});function tn(e){let l="";return"100"==e||"150"==e?l="/static/image/weatherIcon/ic_weather_sunny.png":"104"==e||"154"==e?l="/static/image/weatherIcon/ic_weather_cloudy.png":"101"==e||"103"==e||"151"==e||"153"==e?l="/static/image/weatherIcon/ic_weather_sunny_to_cloudy.png":"302"==e||"303"==e?l="/static/image/weatherIcon/ic_weather_thunderstorm.png":"304"==e?l="/static/image/weatherIcon/ic_weather_hail.png":parseInt(e)>=300&&parseInt(e)<400?l="/static/image/weatherIcon/ic_weather_rainy.png":"404"==e||"405"==e||"406"==e||"456"==e?l="/static/image/weatherIcon/ic_weather_rainy_and_snow.png":parseInt(e)>=400&&parseInt(e)<500?l="/static/image/weatherIcon/ic_weather_snow.png":"500"==e||"501"==e||"509"==e||"510"==e||"514"==e||"515"==e?l="/static/image/weatherIcon/ic_weather_fog.png":"502"==e||"511"==e||"512"==e||"513"==e?l="/static/image/weatherIcon/ic_weather_haze.png":"503"!=e&&"507"!=e&&"508"!=e||(l="/static/image/weatherIcon/ic_weather_sand_and_dust.png"),l} /*! * @intlify/shared v9.1.9 * (c) 2021 kazuya kawaguchi -- Gitblit v1.8.0