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/index-legacy8.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function r(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach(function(e){a(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function a(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,n||"default");if("object"!=t(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,a=t}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function o(n,r,a,o){var u=r&&r.prototype instanceof l?r:l,s=Object.create(u.prototype);return c(s,"_invoke",function(n,r,a){var o,l,u,c=0,s=a||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,l=0,u=t,p.n=n,i}};function d(n,r){for(l=n,u=r,e=0;!f&&c&&!a&&e<s.length;e++){var a,o=s[e],d=p.p,m=o[2];n>3?(a=m===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=d&&((a=n<2&&d<o[1])?(l=0,p.v=r,p.n=o[1]):d<m&&(a=n<3||o[0]>r||r>m)&&(o[4]=n,o[5]=r,p.n=m,l=0))}if(a||n>1)return i;throw f=!0,r}return function(a,s,m){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,m),l=s,u=m;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(p.n=-1),d(l,u)):p.n=u:p.v=u);try{if(c=2,o){if(l||(a="next"),e=o[a]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+a+"' method"),l=1);o=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==i)break}catch(e){o=t,l=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,a,o),!0),s}var i={};function l(){}function s(){}function f(){}e=Object.getPrototypeOf;var p=[][r]?e(e([][r]())):(c(e={},r,function(){return this}),e),d=f.prototype=l.prototype=Object.create(p);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,c(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return s.prototype=f,c(d,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,a,"GeneratorFunction"),c(d),c(d,a,"Generator"),c(d,r,function(){return this}),c(d,"toString",function(){return"[object Generator]"}),(u=function(){return{w:o,m:m}})()}function c(t,e,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}c=function(t,e,n,r){function o(e,n){c(t,e,function(t){return this._invoke(e,n,t)})}e?a?a(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},c(t,e,n,r)}function s(t,e,n,r,a,o,i){try{var l=t[o](i),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,a)}System.register(["./index-legacy118.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy219.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./useController-legacy24.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./ai-legacy.js?v=1777008528"],function(t,n){"use strict";var a,i,l,c,f,p,d,m,x,y,v,b,h,g,w,j,O,_,S,k,P,T,C,M,A,E,D,G,I,F,V,W,q,B,H,U,N,Q;return{setters:[function(t){a=t._},function(t){i=t.r,l=t.c,c=t.o,f=t.j,p=t.k,d=t.q,m=t.e,x=t.v,y=t.p,v=t.x,b=t.s,h=t.y,g=t.C,w=t.bw,j=t.bM,O=t.aB,_=t.z,S=t.aX,k=t.bk,P=t.aF,T=t.aW},function(t){C=t.default},function(t){M=t.e,A=t._,E=t.c,D=t.da,G=t.M,I=t.R,F=t.cZ},function(t){V=t.i,W=t.d,q=t.s,B=t.a,H=t.f,U=t.q,N=t.h,Q=t.g},null,null],execute:function(){var z=i(null),R=i(0),X=function(){var t,e=(t=u().m(function t(){var e,r,a,o=arguments;return u().w(function(t){for(;;)switch(t.n){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:0,r=o.length>1?o[1]:void 0,R.value=e,t.n=1,M({title:"额度充值",area:80,btn:!1,showFooter:!1,compData:{remainQuota:e,callback:r},component:function(){return A(function(){return n.import("./index-legacy493.js?v=1777008528")},void 0,n.meta.url)},onCancel:function(){z.value=null}});case 1:return a=t.v,z.value=a,t.a(2,a)}},t)}),function(){var e=this,n=arguments;return new Promise(function(r,a){var o=t.apply(e,n);function i(t){s(o,r,a,i,l,"next",t)}function l(t){s(o,r,a,i,l,"throw",t)}i(void 0)})});return function(){return e.apply(this,arguments)}}(),Z={class:"h-full flex flex-col overflow-hidden"},$={class:"flex flex-wrap gap-[1.2rem] mb-[1.2rem]"},J={class:"module-ui p-[20px]"},K={class:"flex justify-between items-start"},L={class:"flex flex-col"},Y={class:"mt-[16px]"},tt={class:"flex items-baseline mb-[10px]"},et={class:"flex items-center gap-[15px] h-[16px]"},nt={key:0,class:"module-ui flex flex-col justify-between h-full flex-1 min-w-[280px]"},rt={class:"flex justify-between items-start"},at={class:"text-[12px] text-tertiary inline-flex items-center h-[2rem]"},ot={key:0,class:"tip-text ml-[1rem] bt-link !text-[1.2rem]"},it={class:"flex items-center gap-[8px]"},lt={class:"mt-[16px]"},ut={class:"flex items-baseline mb-[10px]"},ct={class:"text-[26px] text-default font-bold mr-[6px]"},st={class:"text-[12px] text-tertiary"},ft={class:"text-[12px] text-tertiary ml-[3rem]"},pt={class:"flex items-center gap-[15px]"},dt={class:"text-[12px] text-secondary"},mt={class:"module-ui p-[20px]"},xt={class:"flex justify-between items-start"},yt={class:"flex flex-col"},vt={class:"mt-[16px]"},bt={class:"flex items-baseline mb-[10px]"},ht={class:"flex items-center gap-[15px] h-[16px]"},gt={key:0,class:"module-ui flex flex-col justify-between h-full flex-1 min-w-[280px]"},wt={class:"flex justify-between items-start"},jt={class:"text-[12px] text-tertiary h-[2rem]"},Ot={class:"flex"},_t={key:0,class:"tip-text ml-[1rem] bt-link !text-[1.2rem] mr-[2rem]"},St={class:"mt-[16px]"},kt={class:"flex items-baseline mb-[10px]"},Pt={class:"text-[26px] text-default font-bold mr-[6px]"},Tt={class:"text-[12px] text-tertiary"},Ct={class:"flex items-center gap-[15px]"},Mt={class:"text-[12px] text-secondary"},At={class:"flex-1 module-ui relative container-table-tab min-h-0 flex flex-col"};t("default",F(l({__name:"index",setup:function(t){var n=E().mainHeight,u=i([]),s={modifiers:[{name:"flip",enabled:!1}]},A=function(t){return t.getTime()>Date.now()},F=function(){var t=i(u.value||[]);M({title:"导出数据",area:40,btn:!0,component:l({setup:function(e,n){return(0,n.expose)({onConfirm:function(){return t.value&&2===t.value.length?(N({start_date:I(t.value[0],"yyyy-MM-dd"),end_date:I(t.value[1],"yyyy-MM-dd")}),!0):(G.error("请选择日期范围"),!1)}}),function(){return P("div",{class:"p-[2.4rem]"},[P("div",{class:"text-[14px] text-default mb-[10px]"},"选择导出日期范围"),P(w,{modelValue:t.value,"onUpdate:modelValue":function(e){t.value=e},type:"daterange",rangeSeparator:":",startPlaceholder:"开始时间",endPlaceholder:"结束时间",placement:"bottom",popperOptions:s,disabledDate:A,class:"w-full"})])}}})})},z=D({request:function(t){var e=o(u.value||[],2),n=e[0],a=e[1];return Q(r(r({},t),{},{start_date:n?I(n,"yyyy-MM-dd"):"",end_date:a?I(a,"yyyy-MM-dd"):""}))},columns:[{label:"时间",prop:"time",minWidth:160},{label:"工具",prop:"scenario",minWidth:150},{label:"模型",prop:"model",minWidth:100},{renderHeader:function(){return t="消耗次数",e=m("div",null,[v("会话上下文大小和工具调用次数都会直接影响计费次数。"),m("br",null,null),v("控制上下文长度,避免在同一个会话中处理不同任务。")]),m("div",null,[m("span",{class:"mr-[.5rem]"},[t]),m(T,{placement:"top"},{content:m(e,null,null),default:m("span",{class:"ml-4x bt-ico-ask"},["?"])})]);var t,e},prop:"consume",minWidth:100,isCustom:!0,render:function(t){return P("span",{class:"text-warning"},"-".concat(t.consume,"次"))}}]}),R=z.BtTable,Et=z.BtPage,Dt=z.refresh,Gt=z.param;return c(function(){V(n,Gt)}),function(t,r){var o=j,i=C,l=O,c=_,P=S,T=k,M=a;return f(),p("div",Z,[d("div",$,[m(T,{loading:y(U),animated:"",class:"flex-1 min-w-[280px]"},{template:x(function(){return[d("div",J,[d("div",K,[d("div",L,[m(o,{variant:"h3",style:{width:"100px",height:"20px","margin-bottom":"8px"}}),m(o,{variant:"text",style:{width:"140px",height:"14px"}})]),m(o,{variant:"button",style:{width:"80px",height:"32px"}})]),d("div",Y,[d("div",tt,[m(o,{variant:"h1",style:{width:"120px",height:"36px"}})]),d("div",et,[m(o,{variant:"text",style:{width:"100%",height:"8px"}})])])])]}),default:x(function(){return[y(W).total>0||y(q)?(f(),p("div",nt,[d("div",rt,[d("div",null,[r[4]||(r[4]=d("div",{class:"text-[14px] text-default font-bold mb-[6px]"},"每日免费额度",-1)),d("div",at,[v(b(y(W).expire)+" ",1),m(l,{placement:"bottom","popper-style":{padding:"0"},teleported:!1,width:200,trigger:"hover"},{reference:x(function(){return[y(q)?(f(),p("span",ot,e(r[3]||(r[3]=[d("span",{class:"svgtofont-el-service"},null,-1),v("联系客服加赠15天",-1)])))):h("",!0)]}),default:x(function(){return[m(i)]}),_:1})])]),d("div",it,[0===y(B).total?(f(),g(c,{key:0,type:"primary",onClick:r[0]||(r[0]=function(t){return y(X)(y(B).remain,y(H))})},{default:x(function(){return e(r[5]||(r[5]=[v("额度充值",-1)]))}),_:1})):h("",!0)])]),d("div",lt,[d("div",ut,[d("span",ct,"剩"+b(y(W).remain)+"次",1),d("span",st,"/总"+b(y(W).total)+"次",1),d("span",ft,b(y(W).desc),1)]),d("div",pt,[m(P,{class:"flex-1",percentage:y(W).percentage,"show-text":!1,color:"#20a53a","stroke-width":8},null,8,["percentage"]),d("span",dt,"剩余"+b(y(W).percentage)+"%",1)])])])):h("",!0)]}),_:1},8,["loading"]),m(T,{loading:y(U),animated:"",class:"flex-1 min-w-[280px]"},{template:x(function(){return[d("div",mt,[d("div",xt,[d("div",yt,[m(o,{variant:"h3",style:{width:"100px",height:"20px","margin-bottom":"8px"}}),m(o,{variant:"text",style:{width:"140px",height:"14px"}})]),m(o,{variant:"button",style:{width:"80px",height:"32px"}})]),d("div",vt,[d("div",bt,[m(o,{variant:"h1",style:{width:"120px",height:"36px"}})]),d("div",ht,[m(o,{variant:"text",style:{width:"100%",height:"8px"}})])])])]}),default:x(function(){return[y(B).total>0||0===y(W).total&&!y(q)?(f(),p("div",gt,[d("div",wt,[d("div",null,[r[6]||(r[6]=d("div",{class:"text-[14px] text-default font-bold mb-[6px]"},"资源包额度",-1)),d("div",jt,b(y(B).desc),1)]),d("div",Ot,[m(l,{placement:"bottom","popper-style":{padding:"0"},teleported:!1,width:200,trigger:"hover"},{reference:x(function(){return[0!==y(W).total||y(q)?h("",!0):(f(),p("span",_t,e(r[7]||(r[7]=[d("span",{class:"svgtofont-el-service"},null,-1),v("联系客服",-1)]))))]}),default:x(function(){return[m(i)]}),_:1}),m(c,{type:"primary",onClick:r[1]||(r[1]=function(t){return y(X)(y(B).remain,y(H))})},{default:x(function(){return e(r[8]||(r[8]=[v("额度充值",-1)]))}),_:1})])]),d("div",St,[d("div",kt,[d("span",Pt,"剩 "+b(y(B).remain)+" 次",1),d("span",Tt,"/总"+b(y(B).total)+"次",1)]),d("div",Ct,[m(P,{class:"flex-1 gradient-progress shiny-progress",percentage:y(B).percentage,"show-text":!1,"stroke-width":8},null,8,["percentage"]),d("span",Mt,"剩余"+b(y(B).percentage)+"%",1)])])])):h("",!0)]}),_:1},8,["loading"])]),d("div",At,[m(M,{class:"h-full flex-1 min-h-0 flex flex-col"},{"header-left":x(function(){return[m(c,{type:"default",onClick:F},{default:x(function(){return e(r[9]||(r[9]=[v("导出",-1)]))}),_:1})]}),"header-right":x(function(){return[m(y(w),{modelValue:u.value,"onUpdate:modelValue":r[2]||(r[2]=function(t){return u.value=t}),type:"daterange","range-separator":":","popper-options":s,"start-placeholder":"开始时间","end-placeholder":"结束时间",placement:"bottom",onChange:y(Dt),"disabled-date":A},null,8,["modelValue","onChange"])]}),content:x(function(){return[m(y(R),{key:"QuotaTable","max-height":y(n)-380},null,8,["max-height"])]}),"footer-right":x(function(){return[m(y(Et))]}),_:1})])])}}}),[["__scopeId","data-v-5c4a4612"]]))}}})}();