HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/useStore3.js
import{getSslInfo as T,buyService as q,getCertAdminInfo as D,applyCertOrderRenw as R,setCertOrder as N,getBusSslOrderList as O,getVerifyResult as P,getBusSslProductList as x,getDomainList as B,deployTrustAsiaCert as j}from"./site.js?v=1777008528";import{M as p,k as r}from"./utils-lib.js?v=1777008528";import{aI as M,aJ as _,r as s,g as k}from"./base-lib.js?v=1777008528";import{u as V}from"./useStore2.js?v=1777008528";const H=_("site-ssl-store",()=>{var f,g;const{siteInfo:o,siteType:u}=V(),m=s(),y=s(),S=s(),i=s({isCertInfo:!1,https:!1,type:0,key:"",csr:"",index:"",oid:-1,dns:[],subject:"",issuer:"",endtime:"",push:{},pushAlarm:"",isSupportRenewal:!1,isStart:!1,notAfter:"",authType:""}),c=s("busSslList"),d=s({address:"",city:"",country:"",email:"",firstName:"",job:"",lastName:"",mobile:"",organation:"",postCode:"",state:""}),v=s(),l=s({result:{},info:{index:"",type:""},dnsTable:[],verifyDialog:!1}),h=s({}),E=s({domain:((f=o.value)==null?void 0:f.name)||"",orgName:"",orgRegion:"",orgCity:"",orgAddress:"",orgPhone:"",orgPostalCode:"",orgDivision:"总务",path:((g=o.value)==null?void 0:g.path)||""}),I=s(!1),A=s(!1),b=s(!1),C=s({typeList:[],activityList:"",activeTypeInfo:{},productName:"",totalPrice:0,install:!1,years:1}),L=s({pid:0,oid:0,title:"",limit:1,type:"dv",install:!1,isWildcard:!1,isMulti:!1,isIp:!1}),w=k(()=>{var t,e,a;return!((t=i.value)!=null&&t.isStart)||((e=i.value)==null?void 0:e.isSupportRenewal)&&((a=i.value)==null?void 0:a.isStart)});return{sslInfo:i,otherPopup:S,pollingPopup:m,btCertPollingPopup:y,sslTabActive:c,sslApplicationInfo:d,isRefreshSSL:I,isRefreshLetSSL:b,isRefreshBtSSL:A,sslDnsApiInfo:v,letApplyInfo:l,setApplyInfo:(t,e)=>{l.value.dnsTable=t.auths,l.value.info.index=t.index,l.value.info.type=e.auth_type},productInfo:C,orderInfo:L,sslAlertState:w,certVerifyInfo:h,applySslInfo:E,jumpSslTabEvent:t=>{c.value=t},getSSLInfoEvent:async t=>{try{const{data:e}=await T(t);return e.hasOwnProperty("msg")?(p.error("获取证书信息失败"),{data:{},status:!1,msg:"获取证书信息失败"}):{data:e,status:!0,msg:"获取证书信息成功"}}catch(e){return{status:!1,msg:"获取证书信息失败"}}},buyArtificialServiceEvent:async t=>{try{return{data:await r({loading:"正在生成支付订单,请稍后...",request:q(t),data:{alicode:String,oid:Number,price:Number,qq:String,wxcode:String,wxoid:Number}}),status:!0}}catch(e){return{status:!1,msg:"购买人工服务失败"}}},getCertAdminInfoEvent:async()=>{try{return{data:(await r({loading:"正在获取证书默认信息,请稍后...",request:D()})).data,status:!0,msg:"获取证书默认信息成功"}}catch(t){return{status:!1,msg:"获取证书默认信息失败"}}},submitCertInfoEvent:async t=>{try{return{data:(await r({loading:"正在提交证书信息,请稍后...",request:R(t),data:{status:Boolean,msg:[Object,a=>a]}})).data.msg,status:!0,msg:"提交证书信息成功"}}catch(e){return{status:!1,msg:"提交证书信息失败"}}},setBusSslDeployEvent:async t=>{try{return{data:(await r({loading:"正在部署证书,请稍候...",request:N(t,u.value),message:!0})).data,status:!0,msg:"设置证书部署成功"}}catch(e){return{status:!1,msg:"设置证书部署失败"}}},getSslListEvent:async t=>{try{const e=await r({request:O(t),data:Array});return{data:e,total:e.length,other:{}}}catch(e){return{data:[],total:0,other:{}}}},verifyBusCertEvent:async(t,e,a)=>{try{const n=await r({loading:"正在验证商用证书,请稍后...",request:P({oid:t,cert_ssl_type:e,pid:a})});return n.status?{data:{oid:t,...n.data,isCNAME:n.data.data.dcvList[0].dcvMethod.indexOf("CNAME_")>-1},status:!0,msg:"验证商用证书成功"}:(p.request(n),{status:!1,msg:"验证商用证书失败"})}catch(n){return{status:!1,msg:"验证商用证书失败"}}},getCertSslListEvent:async()=>{try{const t=await r({request:x(),data:{info:[Object,"info"],data:[Array,"data"],administrator:[Object,"administrator"]}});return d.value={...t.administrator},{data:t,status:!0,msg:"获取商业证书列表成功"}}catch(t){return{status:!1,msg:"获取商业证书列表失败"}}},getDomainListEvent:async()=>{try{return{data:(await r({loading:"正在获取域名列表,请稍后...",request:B(),data:{data:Array}})).data,status:!0,msg:"获取域名列表成功"}}catch(t){return{status:!1,msg:"获取域名列表失败"}}},useDeployTrustAsiaCert:async(t,e)=>await r({loading:"正在部署证书,请稍后...",request:j(t,u.value),message:!1})}}),at=()=>{const o=H();return{...o,...M(o)}};export{H as S,at as u};