You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
40 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[731],{75385:function(Ee,re,r){r.r(re),r.d(re,{default:function(){return An}});var Y=r(90930),I=r(35312),te=r(15009),t=r.n(te),ue=r(99289),Z=r.n(ue),R=r(5574),E=r.n(R),O=r(48357),H=r(67539),J=r(55241),W=r(10397),C=r(55102),y=r(67294),se=r(97857),D=r.n(se);function ee(x,n){return ne.apply(this,arguments)}function ne(){return ne=Z()(t()().mark(function x(n,l){return t()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,I.request)("/api/admin/app/aliPayConfig",D()({method:"GET",params:D()({},n)},l||{})));case 1:case"end":return a.stop()}},x)})),ne.apply(this,arguments)}function me(x,n,l){return fe.apply(this,arguments)}function fe(){return fe=Z()(t()().mark(function x(n,l,A){return t()().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",(0,I.request)("/api/admin/app/aliPayConfig",D()({method:"POST",headers:{"Content-Type":"application/json"},params:D()({},n),data:l},A||{})));case 1:case"end":return w.stop()}},x)})),fe.apply(this,arguments)}function he(x,n){return ve.apply(this,arguments)}function ve(){return ve=Z()(t()().mark(function x(n,l){return t()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,I.request)("/api/admin/app/basicConfig",D()({method:"GET",params:D()({},n)},l||{})));case 1:case"end":return a.stop()}},x)})),ve.apply(this,arguments)}function ge(x,n){return Ce.apply(this,arguments)}function Ce(){return Ce=Z()(t()().mark(function x(n,l){return t()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,I.request)("/api/admin/app/basicConfig",D()({method:"POST",headers:{"Content-Type":"application/json"},data:n},l||{})));case 1:case"end":return a.stop()}},x)})),Ce.apply(this,arguments)}function xe(x,n){return ye.apply(this,arguments)}function ye(){return ye=Z()(t()().mark(function x(n,l){return t()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,I.request)("/api/admin/app/normalConfig",D()({method:"GET",params:D()({},n)},l||{})));case 1:case"end":return a.stop()}},x)})),ye.apply(this,arguments)}function v(x,n,l){return s.apply(this,arguments)}function s(){return s=Z()(t()().mark(function x(n,l,A){return t()().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",(0,I.request)("/api/admin/app/normalConfig",D()({method:"POST",headers:{"Content-Type":"application/json"},params:D()({},n),data:l},A||{})));case 1:case"end":return w.stop()}},x)})),s.apply(this,arguments)}function i(x,n){return d.apply(this,arguments)}function d(){return d=Z()(t()().mark(function x(n,l){return t()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,I.request)("/api/admin/app/uMengConfig",D()({method:"GET",params:D()({},n)},l||{})));case 1:case"end":return a.stop()}},x)})),d.apply(this,arguments)}function j(x,n,l){return P.apply(this,arguments)}function P(){return P=Z()(t()().mark(function x(n,l,A){return t()().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",(0,I.request)("/api/admin/app/uMengConfig",D()({method:"POST",headers:{"Content-Type":"application/json"},params:D()({},n),data:l},A||{})));case 1:case"end":return w.stop()}},x)})),P.apply(this,arguments)}function Pe(x,n){return ie.apply(this,arguments)}function ie(){return ie=_asyncToGenerator(_regeneratorRuntime().mark(function x(n,l){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/admin/app/wxConfig",_objectSpread({method:"GET",params:_objectSpread({},n)},l||{})));case 1:case"end":return a.stop()}},x)})),ie.apply(this,arguments)}function Ke(x,n,l){return je.apply(this,arguments)}function je(){return je=_asyncToGenerator(_regeneratorRuntime().mark(function x(n,l,A){return _regeneratorRuntime().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",request("/api/admin/app/wxConfig",_objectSpread({method:"POST",headers:{"Content-Type":"application/json"},params:_objectSpread({},n),data:l},A||{})));case 1:case"end":return w.stop()}},x)})),je.apply(this,arguments)}var pe=r(1413),Oe=r(93696),q=r(91146),De=function(n,l){return y.createElement(q.Z,(0,pe.Z)((0,pe.Z)({},n),{},{ref:l,icon:Oe.Z}))},Te=y.forwardRef(De),X=Te,Ie=r(3089),Be=r(42110),Ue=function(n,l){return y.createElement(q.Z,(0,pe.Z)((0,pe.Z)({},n),{},{ref:l,icon:Be.Z}))},Me=y.forwardRef(Ue),ke=Me,u=r(8232),Ze=r(17788),_e=r(72269),oe=r(37804),ce=r(83062),$e=r(71230),ae=r(14726),Re=r(15746),e=r(85893),Qe=function(n){var l=u.Z.useForm(),A=E()(l,1),a=A[0],w=function(){a.submit()},L=function(){n.onCancel()},K=function(){var c=Z()(t()().mark(function F(o){var f;return t()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,xe({appCode:o});case 2:f=T.sent,a.setFieldsValue(f.data);case 4:case"end":return T.stop()}},F)}));return function(o){return c.apply(this,arguments)}}();(0,y.useEffect)(function(){K(n.appCode)},[n.appCode]);var V=function(){var c=Z()(t()().mark(function F(o){return t()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.prev=0,S.next=3,v({appCode:n.appCode},o);case 3:S.next=8;break;case 5:return S.prev=5,S.t0=S.catch(0),S.abrupt("return");case 8:n.onSubmit();case 9:case"end":return S.stop()}},F,null,[[0,5]])}));return function(o){return c.apply(this,arguments)}}(),B={labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:20}}},m={wrapperCol:{xs:{span:24,offset:10},sm:{span:20,offset:6}}};return(0,e.jsx)(Ze.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:w,onCancel:L,children:(0,e.jsxs)(u.Z,{labelCol:{span:6},wrapperCol:{span:18},form:a,onFinish:V,children:[(0,e.jsx)(u.Z.Item,{name:"enablePangolin",label:"\u542F\u7528\u7A7F\u5C71\u7532",children:(0,e.jsx)(_e.Z,{})}),(0,e.jsx)(u.Z.Item,{name:"pangolinDailyLimit",label:"\u7A7F\u5C71\u7532\u6BCF\u65E5\u6B21\u6570",children:(0,e.jsx)(oe.Z,{})}),(0,e.jsx)(u.Z.Item,{name:"tencentDailyLimit",label:"\u5E7F\u544A\u6BCF\u65E5\u6B21\u6570",children:(0,e.jsx)(oe.Z,{})}),(0,e.jsx)(u.Z.Item,{name:"videoDuration",label:"\u89C6\u9891\u5E7F\u544A\u95F4\u9694(\u79D2)",children:(0,e.jsx)(oe.Z,{})}),(0,e.jsx)(u.Z.Item,{name:"popUpDuration",label:"\u63D2\u9875\u5E7F\u544A\u95F4\u9694(\u79D2)",children:(0,e.jsx)(oe.Z,{})}),(0,e.jsx)(u.Z.List,{name:"moneyLadder",children:function(F,o){var f=o.add,S=o.remove;return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(u.Z.Item,{label:(0,e.jsxs)(e.Fragment,{children:["\u63D0\u73B0\u68AF\u5EA6",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ce.Z,{title:"\u7528\u6237\u53EF\u9009\u7684\u63D0\u73B0\u91D1\u989D\u6863\u4F4D\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)(X,{})})})]}),required:!1,children:[(0,e.jsx)($e.Z,{children:F.map(function(T){return(0,e.jsx)(u.Z.Item,{label:"",required:!1,children:(0,e.jsxs)($e.Z,{align:"stretch",style:{marginRight:10},children:[(0,e.jsx)(u.Z.Item,D()(D()({},T),{},{validateTrigger:["onChange","onBlur"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u91D1\u989D\u6216\u8005\u5220\u9664"}],noStyle:!0,children:(0,e.jsx)(oe.Z,{placeholder:"\u91D1\u989D\uFF0C\u5355\u4F4D\u5206"})})),(0,e.jsx)(Ie.Z,{style:{marginLeft:4},className:"dynamic-delete-button",onClick:function(){return S(T.name)}})]})},T.key)})}),(0,e.jsx)(u.Z.Item,D()(D()({},m),{},{children:(0,e.jsx)(ae.ZP,{type:"dashed",onClick:function(){return f()},icon:(0,e.jsx)(ke,{}),children:"\u6DFB\u52A0\u63D0\u73B0\u68AF\u5EA6"})}))]})})}}),(0,e.jsx)(u.Z.Item,{name:"noAuditMoney",label:(0,e.jsxs)(e.Fragment,{children:["\u4E0D\u5BA1\u6838\u95E8\u69DB",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ce.Z,{title:"\u4F4E\u4E8E\u6B64\u91D1\u989D\u7684\u63D0\u73B0\u7533\u8BF7\u5C06\u4F1A\u81EA\u52A8\u5BA1\u6838\u901A\u8FC7\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)(X,{})})})]}),children:(0,e.jsx)(oe.Z,{placeholder:"\u5355\u4F4D\u5206",style:{width:"60%"}})}),(0,e.jsx)(u.Z.Item,{name:"qqUrl",label:"QQ\u7FA4\u94FE\u63A5",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(u.Z.Item,{name:"dayLimit",label:(0,e.jsxs)(e.Fragment,{children:["\u6BCF\u65E5\u63D0\u73B0\u6B21\u6570",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ce.Z,{title:"\u540C\u4E2A\u8D26\u53F7\u6216\u540C\u4E2A\u652F\u4ED8\u5B9D\u6BCF\u65E5\u6700\u591A\u63D0\u73B0\u7684\u6B21\u6570",children:(0,e.jsx)(X,{})})})]}),children:(0,e.jsx)(oe.Z,{style:{width:"60%"}})}),(0,e.jsx)(u.Z.Item,{name:"maxIncomeEachVideo",label:(0,e.jsxs)(e.Fragment,{children:["\u5355\u6761\u6536\u76CA\u4E0A\u9650",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ce.Z,{title:"\u770B\u4E00\u6761\u89C6\u9891\u6700\u591A\u80FD\u83B7\u5F97\u7684\u94B1\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)(X,{})})})]}),children:(0,e.jsx)(oe.Z,{style:{width:"60%"}})}),(0,e.jsx)(u.Z.Item,{name:"defaultRate",label:(0,e.jsx)(e.Fragment,{children:"\u9ED8\u8BA4\u5206\u6210\u6BD4\u4F8B"}),children:(0,e.jsx)(oe.Z,{style:{width:"60%"}})}),(0,e.jsx)(u.Z.List,{name:"dayRates",children:function(F,o){var f=o.add,S=o.remove;return(0,e.jsxs)(e.Fragment,{children:[F.map(function(T,$){var M=T.key,k=T.name;return(0,e.jsx)(e.Fragment,{children:(0,y.createElement)(u.Z.Item,D()(D()({},$===0?B:m),{},{label:$===0?"\u7279\u6B8A\u65E5\u5206\u6210\u6BD4\u4F8B":"",required:!1,key:M}),(0,e.jsxs)($e.Z,{align:"stretch",gutter:16,children:[(0,e.jsx)(Re.Z,{span:8,children:(0,e.jsx)(u.Z.Item,{name:[k,"day"],rules:[{required:!0}],children:(0,e.jsx)(C.Z,{placeholder:"Day"})})}),(0,e.jsx)(Re.Z,{span:8,children:(0,e.jsx)(u.Z.Item,{name:[k,"rate"],rules:[{required:!0}],children:(0,e.jsx)(C.Z,{placeholder:"Rate"})})}),(0,e.jsx)(Re.Z,{children:(0,e.jsx)(Ie.Z,{onClick:function(){return S(k)}})})]},M))})}),(0,e.jsx)(u.Z.Item,D()(D()({},m),{},{children:(0,e.jsx)(ae.ZP,{type:"dashed",onClick:function(){return f()},block:!0,children:"\u6DFB\u52A0\u7279\u6B8A\u65E5\u5206\u6210\u6BD4\u4F8B"})}))]})}})]})})},Je=Qe,Ye=function(){var n=(0,y.useState)(!1),l=E()(n,2),A=l[0],a=l[1],w=(0,y.useState)([]),L=E()(w,2),K=L[0],V=L[1],B=(0,y.useState)([]),m=E()(B,2),c=m[0],F=m[1],o=(0,I.useModel)("@@initialState"),f=o.initialState,S=f==null?void 0:f.currentUser,T=S&&S.role&&S.role<=3,$=(0,y.useState)(),M=E()($,2),k=M[0],N=M[1],g=function(G){var U=K.filter(function(h){var b;return h==null||(b=h.name)===null||b===void 0?void 0:b.includes(G)});F(U)},z=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0},{title:"\u5E94\u7528\u56FE\u7247",dataIndex:"img",hideInSearch:!0,renderText:function(G){return(0,e.jsx)("img",{style:{width:"40px"},src:G})}},{title:"code",dataIndex:"code",copyable:!0,hideInSearch:!0},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",width:200,hideInSearch:!0,renderText:function(G){return(0,e.jsx)(J.Z,{overlayInnerStyle:{padding:0},content:(0,e.jsx)(W.Z,{value:G||"",bordered:!1}),children:(0,e.jsx)("a",{style:{wordBreak:"break-word"},children:G})})}},{title:"\u64CD\u4F5C",width:80,hideInSearch:!0,renderText:function(G){if(G.enableCash&&T)return(0,e.jsx)("a",{onClick:function(){N(G.code),a(!0)},children:"\u7F16\u8F91"},"edit")}}],_=function(){var p=Z()(t()().mark(function G(){var U;return t()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,(0,O.ln)();case 2:U=b.sent,U.data&&(V(U.data),F(U.data));case 4:case"end":return b.stop()}},G)}));return function(){return p.apply(this,arguments)}}();return(0,y.useEffect)(function(){_()},[]),(0,e.jsxs)(Y._z,{children:[(0,e.jsx)(H.Z,{search:{defaultCollapsed:!1,optionRender:function(){return[(0,e.jsx)(C.Z,{placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onChange:function(U){return g(U.target.value)}},"name")]}},onReset:function(){F(K)},columns:z,dataSource:c}),k&&(0,e.jsx)(Je,{updateModalOpen:A,appCode:k||"",onCancel:function(){return a(!1)},onSubmit:function(){a(!1)}})]})},qe=Ye,Le=r(52043),en=r(40110),nn=r(42075),Fe=r(66309),an=r(86250),rn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},tn=rn,un=function(n,l){return y.createElement(q.Z,(0,pe.Z)((0,pe.Z)({},n),{},{ref:l,icon:tn}))},sn=y.forwardRef(un),Se=sn,be=r(66476),we=C.Z.TextArea,ln=function(n){var l=u.Z.useForm(),A=E()(l,1),a=A[0],w=function(){a.submit()},L=function(){n.onCancel()},K=function(){var B=Z()(t()().mark(function m(c){var F;return t()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,ee({appCode:c});case 2:F=f.sent,a.setFieldsValue(F.data);case 4:case"end":return f.stop()}},m)}));return function(c){return B.apply(this,arguments)}}();(0,y.useEffect)(function(){K(n.appCode)},[n.appCode]);var V=function(){var B=Z()(t()().mark(function m(c){return t()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,me({appCode:n.appCode},c);case 3:o.next=8;break;case 5:return o.prev=5,o.t0=o.catch(0),o.abrupt("return");case 8:n.onSubmit();case 9:case"end":return o.stop()}},m,null,[[0,5]])}));return function(c){return B.apply(this,arguments)}}();return(0,e.jsx)(Ze.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:w,onCancel:L,children:(0,e.jsxs)(u.Z,{labelCol:{span:8},wrapperCol:{span:18},form:a,onFinish:V,children:[(0,e.jsx)(u.Z.Item,{name:"aliPayAppId",label:(0,e.jsxs)(e.Fragment,{children:["AppId",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ce.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u83B7\u53D6\uFF0Chttps://open.alipay.com/develop/manage",children:(0,e.jsx)(X,{})})})]}),children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(u.Z.Item,{name:"aliPayPrivateKey",label:(0,e.jsxs)(e.Fragment,{children:["\u5E94\u7528\u79C1\u94A5RSA2048",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ce.Z,{title:"\u5BC6\u94A5\u5DE5\u5177\u751F\u6210",children:(0,e.jsx)(X,{})})})]}),children:(0,e.jsxs)(C.Z.Group,{compact:!0,children:[(0,e.jsx)(u.Z.Item,{name:"aliPayPrivateKey",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9\u5E94\u7528\u79C1\u94A5!"}],children:(0,e.jsx)(we,{autoSize:{maxRows:6}})}),(0,e.jsx)(be.Z,{name:"file",multiple:!1,onChange:function(m){if(m.file.status!=="uploading"){var c=new FileReader;c.onload=function(){a.setFieldsValue({aliPayPrivateKey:c.result})},c.readAsText(m.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(ae.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(Se,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(u.Z.Item,{name:"aliPayAppCert",label:(0,e.jsxs)(e.Fragment,{children:["appCertPublicKey",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ce.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(X,{})})})]}),children:(0,e.jsxs)(C.Z.Group,{compact:!0,children:[(0,e.jsx)(u.Z.Item,{name:"aliPayAppCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9appCertPublicKey!"}],children:(0,e.jsx)(we,{autoSize:{maxRows:6}})}),(0,e.jsx)(be.Z,{name:"file",multiple:!1,onChange:function(m){if(m.file.status!=="uploading"){var c=new FileReader;c.onload=function(){a.setFieldsValue({aliPayAppCert:c.result})},c.readAsText(m.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(ae.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(Se,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(u.Z.Item,{name:"aliPayRootCert",label:(0,e.jsxs)(e.Fragment,{children:["alipayRootCert",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ce.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(X,{})})})]}),children:(0,e.jsxs)(C.Z.Group,{compact:!0,children:[(0,e.jsx)(u.Z.Item,{name:"aliPayRootCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9alipayRootCert!"}],children:(0,e.jsx)(we,{autoSize:{maxRows:6}})}),(0,e.jsx)(be.Z,{name:"file",multiple:!1,onChange:function(m){if(m.file.status!=="uploading"){var c=new FileReader;c.onload=function(){a.setFieldsValue({aliPayRootCert:c.result})},c.readAsText(m.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(ae.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(Se,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(u.Z.Item,{name:"aliPayPublicCert",label:(0,e.jsxs)(e.Fragment,{children:["alipayCertPublicKey",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ce.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(X,{})})})]}),children:(0,e.jsxs)(C.Z.Group,{compact:!0,children:[(0,e.jsx)(u.Z.Item,{name:"aliPayPublicCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9alipayCertPublicKey!"}],children:(0,e.jsx)(we,{autoSize:{maxRows:6}})}),(0,e.jsx)(be.Z,{name:"file",multiple:!1,onChange:function(m){if(m.file.status!=="uploading"){var c=new FileReader;c.onload=function(){a.setFieldsValue({aliPayPublicCert:c.result})},c.readAsText(m.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(ae.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(Se,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})})]})})},on=ln,de=r(2453),cn=r(4575),dn=function(n){var l=u.Z.useForm(),A=E()(l,1),a=A[0],w=function(){a.submit()},L=function(){n.onCancel()},K=function(){var V=Z()(t()().mark(function B(m){return t()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.prev=0,F.next=3,(0,cn.re)(D()(D()({},m),{},{appCode:n.appCode}));case 3:F.next=8;break;case 5:return F.prev=5,F.t0=F.catch(0),F.abrupt("return");case 8:de.ZP.success("\u8F6C\u8D26\u6210\u529F\uFF0C\u8BF7\u67E5\u770B\u652F\u4ED8\u5B9D\u8D26\u6237\u662F\u5426\u5230\u8D26"),n.onSubmit();case 10:case"end":return F.stop()}},B,null,[[0,5]])}));return function(m){return V.apply(this,arguments)}}();return(0,e.jsx)(Ze.Z,{title:"\u7F16\u8F91",visible:!0,onOk:w,onCancel:L,children:(0,e.jsxs)(u.Z,{labelCol:{span:4},wrapperCol:{span:18},form:a,onFinish:K,children:[(0,e.jsx)(u.Z.Item,{name:"name",label:"\u59D3\u540D",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(u.Z.Item,{name:"aliAccount",label:"\u652F\u4ED8\u5B9D\u8D26\u53F7",children:(0,e.jsx)(C.Z,{})})]})})},pn=dn,Ge=r(34041),Ne=r(32400),mn=r(56448),We=r.n(mn),fn=function(n){var l=n.onUploadSuccess,A=n.onUploadError,a=n.url,w=(0,y.useState)(!1),L=E()(w,2),K=L[0],V=L[1],B=(0,y.useState)(null),m=E()(B,2),c=m[0],F=m[1],o=(0,y.useState)([]),f=E()(o,2),S=f[0],T=f[1];(0,y.useEffect)(function(){function M(){return k.apply(this,arguments)}function k(){return k=Z()(t()().mark(function N(){var g,z;return t()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.prev=0,p.next=3,(0,O.po)();case 3:if(g=p.sent,!(!g.data||!g.data.accessKeySecret||!g.data.accessKeyId)){p.next=7;break}return de.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),p.abrupt("return");case 7:z=new(We())({region:"oss-cn-beijing",accessKeyId:g.data.accessKeyId,accessKeySecret:g.data.accessKeySecret,stsToken:g.data.securityToken,bucket:g.data.bucket}),F(z),p.next=15;break;case 11:p.prev=11,p.t0=p.catch(0),de.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25"),A&&A(p.t0);case 15:case"end":return p.stop()}},N,null,[[0,11]])})),k.apply(this,arguments)}M()},[A]);var $=function(){var M=Z()(t()().mark(function k(N){var g,z,_,p,G;return t()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(g=N.file,!(g instanceof File)){h.next=31;break}if(V(!0),T([{uid:g.uid,name:g.name,status:"uploading"}]),h.prev=4,z=g.name.split(".").pop(),a){h.next=13;break}return h.next=9,(0,Ne.p)(g);case 9:p=h.sent,_="matrix/".concat(p,".").concat(z),h.next=14;break;case 13:_="matrix/".concat(a,".").concat(z);case 14:return h.next=16,c==null?void 0:c.put(_,g,{headers:{"Content-Type":g.type}});case 16:G="https://apks.bzgames.cn/".concat(_),l&&l(G,g),V(!1),T([{uid:g.uid,name:g.name,status:"done",url:G}]),h.next=26;break;case 22:h.prev=22,h.t0=h.catch(4),de.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"),A&&A(h.t0);case 26:return h.prev=26,V(!1),h.finish(26);case 29:h.next=32;break;case 31:de.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 32:case"end":return h.stop()}},k,null,[[4,22,26,29]])}));return function(N){return M.apply(this,arguments)}}();return(0,e.jsx)(be.Z,{fileList:S,customRequest:$,disabled:K||!c,children:(0,e.jsx)(ae.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(Se,{}),children:"\u9009\u62E9\u6587\u4EF6"})})},ze=fn,hn=r(19632),vn=r.n(hn),gn=function(n){var l=n.value,A=n.onChange,a=(0,y.useState)(!1),w=E()(a,2),L=w[0],K=w[1],V=(0,y.useState)(null),B=E()(V,2),m=B[0],c=B[1],F=(0,y.useState)([]),o=E()(F,2),f=o[0],S=o[1];(0,y.useEffect)(function(){l&&S(l)},[l]),(0,y.useEffect)(function(){function M(){return k.apply(this,arguments)}function k(){return k=Z()(t()().mark(function N(){var g,z;return t()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.prev=0,p.next=3,(0,O.po)();case 3:if(g=p.sent,!(!g.data||!g.data.accessKeySecret||!g.data.accessKeyId)){p.next=7;break}return de.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),p.abrupt("return");case 7:z=new(We())({region:"oss-cn-beijing",accessKeyId:g.data.accessKeyId,accessKeySecret:g.data.accessKeySecret,stsToken:g.data.securityToken,bucket:g.data.bucket}),c(z),p.next=14;break;case 11:p.prev=11,p.t0=p.catch(0),de.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25");case 14:case"end":return p.stop()}},N,null,[[0,11]])})),k.apply(this,arguments)}M()},[]),(0,y.useEffect)(function(){A&&A(f)},[f]);var T=function(){var M=Z()(t()().mark(function k(N){var g,z,_,p;return t()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:if(g=N.file,!(g instanceof File)){U.next=23;break}return K(!0),U.prev=3,U.next=6,(0,Ne.p)(g);case 6:return z=U.sent,_="matrix/".concat(z,".").concat(g.name.split(".").pop()),U.next=10,m==null?void 0:m.put(_,g,{headers:{"Content-Type":g.type}});case 10:p="https://apks.bzgames.cn/".concat(_),K(!1),S(function(h){return[].concat(vn()(h),[{uid:g.uid,name:g.name,status:"done",url:p}])}),U.next=18;break;case 15:U.prev=15,U.t0=U.catch(3),de.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25");case 18:return U.prev=18,K(!1),U.finish(18);case 21:U.next=24;break;case 23:de.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 24:case"end":return U.stop()}},k,null,[[3,15,18,21]])}));return function(N){return M.apply(this,arguments)}}(),$=function(k){var N=(f||[]).filter(function(g){return g.url!==k.url});S(N)};return(0,e.jsx)(be.Z,{multiple:!0,fileList:f,onRemove:$,customRequest:T,disabled:L||!m,children:(0,e.jsx)(ae.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(Se,{}),children:"\u9009\u62E9\u6587\u4EF6"})})},Cn=gn,yn=function(n){var l=u.Z.useForm(),A=E()(l,1),a=A[0],w=(0,y.useState)(!1),L=E()(w,2),K=L[0],V=L[1],B=function(){a.submit()},m=function(){n.onCancel()},c=function(){var o=Z()(t()().mark(function f(S){var T;return t()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(S){M.next=3;break}return a.resetFields(),M.abrupt("return");case 3:return M.next=5,he({appCode:S});case 5:T=M.sent,a.setFieldsValue(T.data);case 7:case"end":return M.stop()}},f)}));return function(S){return o.apply(this,arguments)}}();(0,y.useEffect)(function(){c(n.appCode),V(n.appCode!==void 0),n.appCode||a.resetFields()},[n.appCode]);var F=function(){var o=Z()(t()().mark(function f(S){return t()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.prev=0,$.next=3,ge(S);case 3:$.next=8;break;case 5:return $.prev=5,$.t0=$.catch(0),$.abrupt("return");case 8:n.onSubmit();case 9:case"end":return $.stop()}},f,null,[[0,5]])}));return function(S){return o.apply(this,arguments)}}();return(0,e.jsx)(Ze.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:B,onCancel:m,children:(0,e.jsxs)(u.Z,{labelCol:{span:5},wrapperCol:{span:18},form:a,onFinish:F,children:[(0,e.jsx)(u.Z.Item,{name:"id",style:{display:"none"},children:(0,e.jsx)(C.Z,{type:"hidden"})}),(0,e.jsx)(u.Z.Item,{name:"code",style:{display:"none"},children:(0,e.jsx)(C.Z,{type:"hidden"})}),(0,e.jsx)(u.Z.Item,{label:"\u5E94\u7528\u540D",name:"name",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(u.Z.Item,{label:"\u5E94\u7528icon",name:"img",children:(0,e.jsxs)(C.Z.Group,{compact:!0,children:[(0,e.jsx)(u.Z.Item,{name:"img",noStyle:!0,children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(ze,{onUploadSuccess:function(f){a.setFieldsValue({img:f})}})]})}),(0,e.jsx)(u.Z.Item,{label:"\u4E0B\u8F7D\u5730\u5740",name:"url",children:(0,e.jsxs)(C.Z.Group,{compact:!0,children:[(0,e.jsx)(u.Z.Item,{name:"url",noStyle:!0,children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(ze,{url:n.appCode,onUploadSuccess:function(f,S){a.setFieldsValue({url:f,fileSize:(0,Le.aV)(S.size)})}})]})}),(0,e.jsx)(u.Z.Item,{label:"app\u7248\u672C",name:"version",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(u.Z.Item,{label:"\u83DC\u5355\u680F\u4E2D",name:"hide",children:(0,e.jsx)(Ge.Z,{options:[{label:"\u5C55\u793A",value:0},{label:"\u9690\u85CF",value:1}]})}),(0,e.jsx)(u.Z.Item,{label:"\u6E20\u9053",name:"channel",children:(0,e.jsx)(Ge.Z,{disabled:K,options:(0,Le.FG)()})}),(0,e.jsx)(u.Z.Item,{label:"app\u5927\u5C0F",name:"fileSize",children:(0,e.jsx)(C.Z,{disabled:!0})}),(0,e.jsx)(u.Z.Item,{label:"app\u4E0B\u8F7D\u6B21\u6570",name:"downloadTimes",children:(0,e.jsx)(C.Z,{disabled:!0})}),(0,e.jsx)(u.Z.Item,{label:"\u6240\u5C5E\u516C\u53F8",name:"author",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(u.Z.Item,{label:"app\u5305\u540D",name:"packageName",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(u.Z.Item,{label:"app\u7B80\u4ECB",name:"desc",children:(0,e.jsx)(C.Z.TextArea,{})}),(0,e.jsxs)(u.Z.Item,{label:"\u5E94\u7528\u622A\u56FE",name:"images",children:[(0,e.jsx)(Cn,{value:[],onChange:function(f){var S=f.filter(function(T){return T.url}).map(function(T){return T.url}).filter(Boolean);S&&S.length>0&&a.setFieldsValue({images:S})}}),(0,e.jsx)("label",{style:{color:"gray"},children:"\u53EF\u591A\u9009\uFF0C\u4E0D\u4F20\u9ED8\u8BA4\u4F1A\u4F7F\u7528\u4E4B\u524D\u7684\u65E7\u6570\u636E"})]})]})})},jn=yn,xn=function(n){var l=u.Z.useForm(),A=E()(l,1),a=A[0],w=function(){a.submit()},L=function(){n.onCancel()},K=function(){var B=Z()(t()().mark(function m(c){var F;return t()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,i({appCode:c});case 2:F=f.sent,a.setFieldsValue(F.data);case 4:case"end":return f.stop()}},m)}));return function(c){return B.apply(this,arguments)}}();(0,y.useEffect)(function(){K(n.appCode)},[n.appCode]);var V=function(){var B=Z()(t()().mark(function m(c){return t()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,j({appCode:n.appCode},c);case 3:o.next=8;break;case 5:return o.prev=5,o.t0=o.catch(0),o.abrupt("return");case 8:n.onSubmit();case 9:case"end":return o.stop()}},m,null,[[0,5]])}));return function(c){return B.apply(this,arguments)}}();return(0,e.jsx)(Ze.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:w,onCancel:L,children:(0,e.jsxs)(u.Z,{labelCol:{span:8},wrapperCol:{span:16},form:a,onFinish:V,children:[(0,e.jsx)(u.Z.Item,{name:"umengAppKeyAli",label:"AppKey(\u963F\u91CC\u4E91)",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(u.Z.Item,{name:"umengAppSecret",label:"AppSecret(\u963F\u91CC\u4E91)",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(u.Z.Item,{name:"umengAppCode",label:"AppCode(\u963F\u91CC\u4E91)",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(u.Z.Item,{name:"umengAppKey",label:"AppKey(\u53CB\u76DF)",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(u.Z.Item,{name:"linkId",label:"linkId(\u53CB\u76DF)",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(u.Z.Item,{name:"bindWx",label:"\u7ED1\u5B9A\u5FAE\u4FE1\u8D26\u53F7",children:(0,e.jsx)(_e.Z,{})})]})})},Fn=xn,Sn=function(){var n=(0,y.useState)(!1),l=E()(n,2),A=l[0],a=l[1],w=(0,y.useState)([]),L=E()(w,2),K=L[0],V=L[1],B=(0,y.useState)(!1),m=E()(B,2),c=m[0],F=m[1],o=(0,y.useState)(!1),f=E()(o,2),S=f[0],T=f[1],$=(0,y.useState)(!1),M=E()($,2),k=M[0],N=M[1],g=(0,y.useState)(),z=E()(g,2),_=z[0],p=z[1],G=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0,fixed:"left",filterDropdown:function(b){var Q=b.setSelectedKeys,Ae=b.selectedKeys,le=b.confirm,He=b.clearFilters;return(0,e.jsxs)("div",{style:{padding:8},children:[(0,e.jsx)(C.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:Ae[0],onChange:function(Xe){return Q(Xe.target.value?[Xe.target.value]:[])},onPressEnter:function(){return le()},style:{marginBottom:8,display:"block"}}),(0,e.jsxs)(nn.Z,{children:[(0,e.jsx)(ae.ZP,{onClick:function(){return le()},type:"primary",children:"\u641C\u7D22"}),(0,e.jsx)(ae.ZP,{onClick:function(){return He&&He()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(b,Q){return typeof b=="string"&&typeof(Q==null?void 0:Q.name)=="string"?Q.name.includes(b):!1},filterIcon:function(b){return(0,e.jsx)(en.Z,{style:{color:b?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u56FE\u7247",dataIndex:"img",hideInSearch:!0,renderText:function(b){return(0,e.jsx)("img",{style:{width:"40px"},src:b})}},{title:"code",dataIndex:"code",copyable:!0,hideInSearch:!0},{title:"\u5E94\u7528\u5E02\u573A",dataIndex:"code",copyable:!0,width:200,hideInSearch:!0,renderText:function(b){return"https://pomelo.bzgames.cn/market/"+b}},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",width:200,hideInSearch:!0,copyable:!0},{title:"\u4E0B\u8F7D\u4E8C\u7EF4\u7801",dataIndex:"url",hideInSearch:!0,renderText:function(b){return b?(0,e.jsx)(J.Z,{overlayInnerStyle:{padding:0},content:(0,e.jsx)(W.Z,{value:b||"",bordered:!1}),children:(0,e.jsx)("a",{style:{wordBreak:"break-word"},children:"\u67E5\u770B"})}):""}},{title:"secret",dataIndex:"secret",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u83DC\u5355\u680F\u4E2D",dataIndex:"hide",hideInSearch:!0,renderText:function(b){return b===0?(0,e.jsx)(Fe.Z,{color:"blue",children:"\u5C55\u793A"}):(0,e.jsx)(Fe.Z,{color:"purple",children:"\u9690\u85CF"})}},{title:"\u6E20\u9053",dataIndex:"channel",hideInSearch:!0,renderText:function(b){var Q=(0,Le.FG)(),Ae=Q.find(function(le){return le.value===b});return Ae?Ae.label:b}},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,fixed:"right",renderText:function(b){return(0,e.jsxs)(an.Z,{gap:"small",wrap:!0,children:[(0,e.jsx)(Fe.Z,{color:"magenta",onClick:function(){p(b.code),a(!0)},children:"\u7F16\u8F91"},"edit"),b.enableCash&&(0,e.jsx)(Fe.Z,{color:"orange",onClick:function(){p(b.code),T(!0)},children:"\u53CB\u76DF\u914D\u7F6E"},"ediyUMeng"),(0,e.jsx)(Fe.Z,{color:"#2db7f5",onClick:function(){p(b.code),F(!0)},children:"\u652F\u4ED8\u5B9D\u914D\u7F6E"},"ediyAliPay"),b.enableCash&&(0,e.jsx)(Fe.Z,{color:"cyan",onClick:function(){p(b.code),N(!0)},children:"\u8F6C\u8D26"},"ediyTransfer")]})}}],U=function(){var h=Z()(t()().mark(function b(){var Q;return t()().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return le.next=2,(0,O.ln)();case 2:Q=le.sent,Q.data&&V(Q.data);case 4:case"end":return le.stop()}},b)}));return function(){return h.apply(this,arguments)}}();return(0,y.useEffect)(function(){U()},[]),(0,e.jsxs)(Y._z,{children:[(0,e.jsx)(ae.ZP,{style:{marginBottom:"20px"},onClick:function(){a(!0),p(void 0)},children:"\u65B0\u5EFA\u5E94\u7528"}),(0,e.jsx)(H.Z,{scroll:{x:1200},search:!1,columns:G,dataSource:K}),_&&c&&(0,e.jsx)(on,{updateModalOpen:c,appCode:_||"",onCancel:function(){return F(!1)},onSubmit:function(){F(!1),U()}}),_&&S&&(0,e.jsx)(Fn,{updateModalOpen:S,appCode:_||"",onCancel:function(){return T(!1)},onSubmit:function(){T(!1)}}),(0,e.jsx)(jn,{updateModalOpen:A,appCode:_,onCancel:function(){return a(!1)},onSubmit:function(){a(!1),U()}}),_&&k&&(0,e.jsx)(pn,{appCode:_||"",onCancel:function(){return N(!1)},onSubmit:function(){N(!1)}})]})},bn=Sn,Zn=function(){var n=(0,I.useModel)("@@initialState"),l=n.initialState,A=l==null?void 0:l.currentUser,a=A&&A.role&&A.role<2;return(0,e.jsx)(Y._z,{children:a?(0,e.jsx)(bn,{}):(0,e.jsx)(qe,{})})},An=Zn},4575:function(Ee,re,r){r.d(re,{Nk:function(){return H},Rn:function(){return E},SN:function(){return ne},XM:function(){return D},ai:function(){return W},k_:function(){return y},nN:function(){return ve},nr:function(){return ye},re:function(){return Ce},vE:function(){return fe}});var Y=r(15009),I=r.n(Y),te=r(97857),t=r.n(te),ue=r(99289),Z=r.n(ue),R=r(35312);function E(s,i){return O.apply(this,arguments)}function O(){return O=Z()(I()().mark(function s(i,d){return I()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",(0,R.request)("/api/admin/superAdmin/addSchedule",t()({method:"POST",headers:{"Content-Type":"application/json"},data:i},d||{})));case 1:case"end":return P.stop()}},s)})),O.apply(this,arguments)}function H(s,i){return J.apply(this,arguments)}function J(){return J=Z()(I()().mark(function s(i,d){return I()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",(0,R.request)("/api/admin/superAdmin/changeInnerUserStatus",t()({method:"POST",params:t()({},i)},d||{})));case 1:case"end":return P.stop()}},s)})),J.apply(this,arguments)}function W(s){return C.apply(this,arguments)}function C(){return C=Z()(I()().mark(function s(i){return I()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",(0,R.request)("/api/admin/superAdmin/evilAppList",t()({method:"GET"},i||{})));case 1:case"end":return j.stop()}},s)})),C.apply(this,arguments)}function y(s){return se.apply(this,arguments)}function se(){return se=Z()(I()().mark(function s(i){return I()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",(0,R.request)("/api/admin/superAdmin/innerUserList",t()({method:"GET"},i||{})));case 1:case"end":return j.stop()}},s)})),se.apply(this,arguments)}function D(s,i){return ee.apply(this,arguments)}function ee(){return ee=Z()(I()().mark(function s(i,d){return I()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",(0,R.request)("/api/admin/superAdmin/saveEvilApp",t()({method:"POST",headers:{"Content-Type":"application/json"},data:i},d||{})));case 1:case"end":return P.stop()}},s)})),ee.apply(this,arguments)}function ne(s,i){return me.apply(this,arguments)}function me(){return me=Z()(I()().mark(function s(i,d){return I()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",(0,R.request)("/api/admin/superAdmin/saveInnerUser",t()({method:"POST",params:t()({},i)},d||{})));case 1:case"end":return P.stop()}},s)})),me.apply(this,arguments)}function fe(s,i){return he.apply(this,arguments)}function he(){return he=Z()(I()().mark(function s(i,d){return I()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",(0,R.request)("/api/admin/superAdmin/saveWhiteUser",t()({method:"POST",params:t()({},i)},d||{})));case 1:case"end":return P.stop()}},s)})),he.apply(this,arguments)}function ve(s){return ge.apply(this,arguments)}function ge(){return ge=Z()(I()().mark(function s(i){return I()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",(0,R.request)("/api/admin/superAdmin/scheduleList",t()({method:"GET"},i||{})));case 1:case"end":return j.stop()}},s)})),ge.apply(this,arguments)}function Ce(s,i){return xe.apply(this,arguments)}function xe(){return xe=Z()(I()().mark(function s(i,d){return I()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",(0,R.request)("/api/admin/superAdmin/transfer",t()({method:"POST",params:t()({},i)},d||{})));case 1:case"end":return P.stop()}},s)})),xe.apply(this,arguments)}function ye(s){return v.apply(this,arguments)}function v(){return v=Z()(I()().mark(function s(i){return I()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.abrupt("return",(0,R.request)("/api/admin/superAdmin/whiteUserList",t()({method:"GET"},i||{})));case 1:case"end":return j.stop()}},s)})),v.apply(this,arguments)}},52043:function(Ee,re,r){r.d(re,{E7:function(){return I},FG:function(){return Y},RQ:function(){return ue},XY:function(){return te},aV:function(){return Z},m0:function(){return t}});var Y=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},I=function(E){var O=[];if(!E)return O;for(var H=E>>1,J=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],W=0,C=J;W<C.length;W++){var y=C[W];H&1&&O.push(y),H>>=1}return O},te=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},t=function(E){var O=new Date(E),H=O.getFullYear().toString().padStart(4,"0"),J=(O.getMonth()+1).toString().padStart(2,"0"),W=O.getDate().toString().padStart(2,"0");return H+J+W},ue=function(E,O){var H=E.toString();return H.padStart(O,"0")},Z=function(E){var O=E;return O<1024?O+" B":(O=parseFloat((O/1024).toFixed(2)),O<1024?O+" KB":(O=parseFloat((O/1024).toFixed(2)),O+" MB"))}},32400:function(Ee,re,r){r.d(re,{p:function(){return R}});var Y=r(15009),I=r.n(Y),te=r(99289),t=r.n(te),ue=r(8322),Z=r.n(ue);function R(O){return E.apply(this,arguments)}function E(){return E=t()(I()().mark(function O(H){return I()().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",new Promise(function(C,y){var se=new(Z()).ArrayBuffer,D=new FileReader;D.onload=function(ee){var ne;se.append((ne=ee.target)===null||ne===void 0?void 0:ne.result),C(se.end())},D.onerror=function(ee){y(ee)},D.readAsArrayBuffer(H)}));case 1:case"end":return W.stop()}},O)})),E.apply(this,arguments)}},86250:function(Ee,re,r){r.d(re,{Z:function(){return ye}});var Y=r(67294),I=r(93967),te=r.n(I),t=r(98423),ue=r(98065),Z=r(53124),R=r(91945),E=r(45503);const O=["wrap","nowrap","wrap-reverse"],H=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],J=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],W=(v,s)=>{const i=s.wrap===!0?"wrap":s.wrap;return{[`${v}-wrap-${i}`]:i&&O.includes(i)}},C=(v,s)=>{const i={};return J.forEach(d=>{i[`${v}-align-${d}`]=s.align===d}),i[`${v}-align-stretch`]=!s.align&&!!s.vertical,i},y=(v,s)=>{const i={};return H.forEach(d=>{i[`${v}-justify-${d}`]=s.justify===d}),i};function se(v,s){return te()(Object.assign(Object.assign(Object.assign({},W(v,s)),C(v,s)),y(v,s)))}var D=se;const ee=v=>{const{componentCls:s}=v;return{[s]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},ne=v=>{const{componentCls:s}=v;return{[s]:{"&-gap-small":{gap:v.flexGapSM},"&-gap-middle":{gap:v.flexGap},"&-gap-large":{gap:v.flexGapLG}}}},me=v=>{const{componentCls:s}=v,i={};return O.forEach(d=>{i[`${s}-wrap-${d}`]={flexWrap:d}}),i},fe=v=>{const{componentCls:s}=v,i={};return J.forEach(d=>{i[`${s}-align-${d}`]={alignItems:d}}),i},he=v=>{const{componentCls:s}=v,i={};return H.forEach(d=>{i[`${s}-justify-${d}`]={justifyContent:d}}),i},ve=()=>({});var ge=(0,R.I$)("Flex",v=>{const{paddingXS:s,padding:i,paddingLG:d}=v,j=(0,E.TS)(v,{flexGapSM:s,flexGap:i,flexGapLG:d});return[ee(j),ne(j),me(j),fe(j),he(j)]},ve,{resetStyle:!1}),Ce=function(v,s){var i={};for(var d in v)Object.prototype.hasOwnProperty.call(v,d)&&s.indexOf(d)<0&&(i[d]=v[d]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,d=Object.getOwnPropertySymbols(v);j<d.length;j++)s.indexOf(d[j])<0&&Object.prototype.propertyIsEnumerable.call(v,d[j])&&(i[d[j]]=v[d[j]]);return i},ye=Y.forwardRef((v,s)=>{const{prefixCls:i,rootClassName:d,className:j,style:P,flex:Pe,gap:ie,children:Ke,vertical:je=!1,component:pe="div"}=v,Oe=Ce(v,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:q,direction:De,getPrefixCls:Te}=Y.useContext(Z.E_),X=Te("flex",i),[Ie,Be,Ue]=ge(X),Me=je!=null?je:q==null?void 0:q.vertical,ke=te()(j,d,q==null?void 0:q.className,X,Be,Ue,D(X,v),{[`${X}-rtl`]:De==="rtl",[`${X}-gap-${ie}`]:(0,ue.n)(ie),[`${X}-vertical`]:Me}),u=Object.assign(Object.assign({},q==null?void 0:q.style),P);return Pe&&(u.flex=Pe),ie&&!(0,ue.n)(ie)&&(u.gap=ie),Ie(Y.createElement(pe,Object.assign({ref:s,className:ke,style:u},(0,t.Z)(Oe,["justify","wrap","align"])),Ke))})}}]);