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
29 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[731],{3345:function(Fe,ne,r){r.r(ne),r.d(ne,{default:function(){return fn}});var Q=r(90930),T=r(35312),ae=r(15009),s=r.n(ae),re=r(99289),S=r.n(re),N=r(5574),v=r.n(N),D=r(48357),X=r(67539),W=r(55241),z=r(10397),F=r(55102),y=r(67294),oe=r(97857),Z=r.n(oe);function le(c,n){return q.apply(this,arguments)}function q(){return q=S()(s()().mark(function c(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/aliPayConfig",Z()({method:"GET",params:Z()({},n)},u||{})));case 1:case"end":return a.stop()}},c)})),q.apply(this,arguments)}function Se(c,n,u){return ce.apply(this,arguments)}function ce(){return ce=S()(s()().mark(function c(n,u,m){return s()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,T.request)("/api/admin/app/aliPayConfig",Z()({method:"POST",headers:{"Content-Type":"application/json"},params:Z()({},n),data:u},m||{})));case 1:case"end":return h.stop()}},c)})),ce.apply(this,arguments)}function Ze(c,n){return de.apply(this,arguments)}function de(){return de=S()(s()().mark(function c(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/basicConfig",Z()({method:"GET",params:Z()({},n)},u||{})));case 1:case"end":return a.stop()}},c)})),de.apply(this,arguments)}function be(c,n){return pe.apply(this,arguments)}function pe(){return pe=S()(s()().mark(function c(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/basicConfig",Z()({method:"POST",headers:{"Content-Type":"application/json"},data:n},u||{})));case 1:case"end":return a.stop()}},c)})),pe.apply(this,arguments)}function Ue(c,n){return fe.apply(this,arguments)}function fe(){return fe=S()(s()().mark(function c(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/normalConfig",Z()({method:"GET",params:Z()({},n)},u||{})));case 1:case"end":return a.stop()}},c)})),fe.apply(this,arguments)}function o(c,n,u){return g.apply(this,arguments)}function g(){return g=S()(s()().mark(function c(n,u,m){return s()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,T.request)("/api/admin/app/normalConfig",Z()({method:"POST",headers:{"Content-Type":"application/json"},params:Z()({},n),data:u},m||{})));case 1:case"end":return h.stop()}},c)})),g.apply(this,arguments)}function b(c,n){return C.apply(this,arguments)}function C(){return C=S()(s()().mark(function c(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/admin/app/uMengConfig",Z()({method:"GET",params:Z()({},n)},u||{})));case 1:case"end":return a.stop()}},c)})),C.apply(this,arguments)}function M(c,n,u){return me.apply(this,arguments)}function me(){return me=S()(s()().mark(function c(n,u,m){return s()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,T.request)("/api/admin/app/uMengConfig",Z()({method:"POST",headers:{"Content-Type":"application/json"},params:Z()({},n),data:u},m||{})));case 1:case"end":return h.stop()}},c)})),me.apply(this,arguments)}function Ae(c,n){return _.apply(this,arguments)}function _(){return _=_asyncToGenerator(_regeneratorRuntime().mark(function c(n,u){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)},u||{})));case 1:case"end":return a.stop()}},c)})),_.apply(this,arguments)}function ke(c,n,u){return ue.apply(this,arguments)}function ue(){return ue=_asyncToGenerator(_regeneratorRuntime().mark(function c(n,u,m){return _regeneratorRuntime().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",request("/api/admin/app/wxConfig",_objectSpread({method:"POST",headers:{"Content-Type":"application/json"},params:_objectSpread({},n),data:u},m||{})));case 1:case"end":return h.stop()}},c)})),ue.apply(this,arguments)}var te=r(1413),Ee=r(93696),V=r(91146),Ie=function(n,u){return y.createElement(V.Z,(0,te.Z)((0,te.Z)({},n),{},{ref:u,icon:Ee.Z}))},we=y.forwardRef(Ie),$=we,ge=r(3089),Oe=r(42110),Pe=function(n,u){return y.createElement(V.Z,(0,te.Z)((0,te.Z)({},n),{},{ref:u,icon:Oe.Z}))},De=y.forwardRef(Pe),Be=De,t=r(8232),Ce=r(17788),ee=r(83062),Te=r(71230),he=r(37804),se=r(14726),Me=r(15746),e=r(85893),Ke=function(n){var u=t.Z.useForm(),m=v()(u,1),a=m[0],h=function(){a.submit()},R=function(){n.onCancel()},B=function(){var p=S()(s()().mark(function A(l){var i;return s()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,Ue({appCode:l});case 2:i=d.sent,a.setFieldsValue(i.data);case 4:case"end":return d.stop()}},A)}));return function(l){return p.apply(this,arguments)}}();(0,y.useEffect)(function(){B(n.appCode)},[n.appCode]);var G=function(){var p=S()(s()().mark(function A(l){return s()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.prev=0,x.next=3,o({appCode:n.appCode},l);case 3:x.next=8;break;case 5:return x.prev=5,x.t0=x.catch(0),x.abrupt("return");case 8:n.onSubmit();case 9:case"end":return x.stop()}},A,null,[[0,5]])}));return function(l){return p.apply(this,arguments)}}(),E={labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:20}}},f={wrapperCol:{xs:{span:24,offset:10},sm:{span:20,offset:6}}};return(0,e.jsx)(Ce.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:h,onCancel:R,children:(0,e.jsxs)(t.Z,{labelCol:{span:6},wrapperCol:{span:18},form:a,onFinish:G,children:[(0,e.jsx)(t.Z.List,{name:"moneyLadder",children:function(A,l){var i=l.add,x=l.remove;return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(t.Z.Item,{label:(0,e.jsxs)(e.Fragment,{children:["\u63D0\u73B0\u68AF\u5EA6",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ee.Z,{title:"\u7528\u6237\u53EF\u9009\u7684\u63D0\u73B0\u91D1\u989D\u6863\u4F4D\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)($,{})})})]}),required:!1,children:[(0,e.jsx)(Te.Z,{children:A.map(function(d){return(0,e.jsx)(t.Z.Item,{label:"",required:!1,children:(0,e.jsxs)(Te.Z,{align:"stretch",style:{marginRight:10},children:[(0,e.jsx)(t.Z.Item,Z()(Z()({},d),{},{validateTrigger:["onChange","onBlur"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u91D1\u989D\u6216\u8005\u5220\u9664"}],noStyle:!0,children:(0,e.jsx)(he.Z,{placeholder:"\u91D1\u989D\uFF0C\u5355\u4F4D\u5206"})})),(0,e.jsx)(ge.Z,{style:{marginLeft:4},className:"dynamic-delete-button",onClick:function(){return x(d.name)}})]})},d.key)})}),(0,e.jsx)(t.Z.Item,Z()(Z()({},f),{},{children:(0,e.jsx)(se.ZP,{type:"dashed",onClick:function(){return i()},icon:(0,e.jsx)(Be,{}),children:"\u6DFB\u52A0\u63D0\u73B0\u68AF\u5EA6"})}))]})})}}),(0,e.jsx)(t.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)(ee.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)($,{})})})]}),children:(0,e.jsx)(he.Z,{placeholder:"\u5355\u4F4D\u5206",style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"qqUrl",label:"QQ\u7FA4\u94FE\u63A5",children:(0,e.jsx)(F.Z,{})}),(0,e.jsx)(t.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)(ee.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)($,{})})})]}),children:(0,e.jsx)(he.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.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)(ee.Z,{title:"\u770B\u4E00\u6761\u89C6\u9891\u6700\u591A\u80FD\u83B7\u5F97\u7684\u94B1\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsx)(he.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"defaultRate",label:(0,e.jsx)(e.Fragment,{children:"\u9ED8\u8BA4\u5206\u6210\u6BD4\u4F8B"}),children:(0,e.jsx)(he.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.List,{name:"dayRates",children:function(A,l){var i=l.add,x=l.remove;return(0,e.jsxs)(e.Fragment,{children:[A.map(function(d,I){var O=d.key,w=d.name;return(0,e.jsx)(e.Fragment,{children:(0,y.createElement)(t.Z.Item,Z()(Z()({},I===0?E:f),{},{label:I===0?"\u7279\u6B8A\u65E5\u5206\u6210\u6BD4\u4F8B":"",required:!1,key:O}),(0,e.jsxs)(Te.Z,{align:"stretch",gutter:16,children:[(0,e.jsx)(Me.Z,{span:8,children:(0,e.jsx)(t.Z.Item,{name:[w,"day"],rules:[{required:!0}],children:(0,e.jsx)(F.Z,{placeholder:"Day"})})}),(0,e.jsx)(Me.Z,{span:8,children:(0,e.jsx)(t.Z.Item,{name:[w,"rate"],rules:[{required:!0}],children:(0,e.jsx)(F.Z,{placeholder:"Rate"})})}),(0,e.jsx)(Me.Z,{children:(0,e.jsx)(ge.Z,{onClick:function(){return x(w)}})})]},O))})}),(0,e.jsx)(t.Z.Item,Z()(Z()({},f),{},{children:(0,e.jsx)(se.ZP,{type:"dashed",onClick:function(){return i()},block:!0,children:"\u6DFB\u52A0\u7279\u6B8A\u65E5\u5206\u6210\u6BD4\u4F8B"})}))]})}})]})})},Ne=Ke,We=function(){var n=(0,y.useState)(!1),u=v()(n,2),m=u[0],a=u[1],h=(0,y.useState)([]),R=v()(h,2),B=R[0],G=R[1],E=(0,y.useState)([]),f=v()(E,2),p=f[0],A=f[1],l=(0,y.useState)(),i=v()(l,2),x=i[0],d=i[1],I=function(j){var H=B.filter(function(Y){var L;return Y==null||(L=Y.name)===null||L===void 0?void 0:L.includes(j)});A(H)},O=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0},{title:"\u5E94\u7528\u56FE\u7247",dataIndex:"img",hideInSearch:!0,renderText:function(j){return(0,e.jsx)("img",{style:{width:"40px"},src:j})}},{title:"code",dataIndex:"code",copyable:!0,hideInSearch:!0},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",width:200,hideInSearch:!0,renderText:function(j){return(0,e.jsx)(W.Z,{overlayInnerStyle:{padding:0},content:(0,e.jsx)(z.Z,{value:j||"",bordered:!1}),children:(0,e.jsx)("a",{style:{wordBreak:"break-word"},children:j})})}},{title:"\u64CD\u4F5C",width:80,hideInSearch:!0,renderText:function(j){if(j.enableCash)return(0,e.jsx)("a",{onClick:function(){d(j.code),a(!0)},children:"\u7F16\u8F91"},"edit")}}],w=function(){var k=S()(s()().mark(function j(){var H;return s()().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,(0,D.ln)();case 2:H=L.sent,H.data&&(G(H.data),A(H.data));case 4:case"end":return L.stop()}},j)}));return function(){return k.apply(this,arguments)}}();return(0,y.useEffect)(function(){w()},[]),(0,e.jsxs)(Q._z,{children:[(0,e.jsx)(X.Z,{search:{defaultCollapsed:!1,optionRender:function(){return[(0,e.jsx)(F.Z,{placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onChange:function(H){return I(H.target.value)}},"name")]}},onReset:function(){A(B)},columns:O,dataSource:p}),x&&(0,e.jsx)(Ne,{updateModalOpen:m,appCode:x||"",onCancel:function(){return a(!1)},onSubmit:function(){a(!1)}})]})},ze=We,Le=r(52043),ve=r(66309),He=r(86250),Qe={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"},Xe=Qe,Je=function(n,u){return y.createElement(V.Z,(0,te.Z)((0,te.Z)({},n),{},{ref:u,icon:Xe}))},Ye=y.forwardRef(Je),xe=Ye,je=r(66476),$e=F.Z.TextArea,qe=function(n){var u=t.Z.useForm(),m=v()(u,1),a=m[0],h=function(){a.submit()},R=function(){n.onCancel()},B=function(){var E=S()(s()().mark(function f(p){var A;return s()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,le({appCode:p});case 2:A=i.sent,a.setFieldsValue(A.data);case 4:case"end":return i.stop()}},f)}));return function(p){return E.apply(this,arguments)}}();(0,y.useEffect)(function(){B(n.appCode)},[n.appCode]);var G=function(){var E=S()(s()().mark(function f(p){return s()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,Se({appCode:n.appCode},p);case 3:l.next=8;break;case 5:return l.prev=5,l.t0=l.catch(0),l.abrupt("return");case 8:n.onSubmit();case 9:case"end":return l.stop()}},f,null,[[0,5]])}));return function(p){return E.apply(this,arguments)}}();return(0,e.jsx)(Ce.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:h,onCancel:R,children:(0,e.jsxs)(t.Z,{labelCol:{span:8},wrapperCol:{span:18},form:a,onFinish:G,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayAppId",label:(0,e.jsxs)(e.Fragment,{children:["AppId",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ee.Z,{title:"\u963F\u91CC\u4E91\u5F00\u653E\u5E73\u53F0\u83B7\u53D6",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsx)(F.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"aliPayPrivateKey",label:(0,e.jsxs)(e.Fragment,{children:["PrivateKey",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ee.Z,{title:"\u963F\u91CC\u4E91\u5F00\u653E\u5E73\u53F0\u83B7\u53D6",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsx)(F.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"aliPayAppCert",label:(0,e.jsxs)(e.Fragment,{children:["appCertPublicKey",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ee.Z,{title:"\u5BC6\u94A5\u5DE5\u5177\u751F\u6210",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsxs)(F.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayAppCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9appCertPublicKey!"}],children:(0,e.jsx)($e,{autoSize:{maxRows:6}})}),(0,e.jsx)(je.Z,{name:"file",multiple:!1,onChange:function(f){if(f.file.status!=="uploading"){var p=new FileReader;p.onload=function(){a.setFieldsValue({aliPayAppCert:p.result})},p.readAsText(f.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(se.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(xe,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(t.Z.Item,{name:"aliPayRootCert",label:(0,e.jsxs)(e.Fragment,{children:["alipayRootCert",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ee.Z,{title:"\u5BC6\u94A5\u5DE5\u5177\u751F\u6210",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsxs)(F.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayRootCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9alipayRootCert!"}],children:(0,e.jsx)($e,{autoSize:{maxRows:6}})}),(0,e.jsx)(je.Z,{name:"file",multiple:!1,onChange:function(f){if(f.file.status!=="uploading"){var p=new FileReader;p.onload=function(){a.setFieldsValue({aliPayRootCert:p.result})},p.readAsText(f.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(se.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(xe,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(t.Z.Item,{name:"aliPayPublicCert",label:(0,e.jsxs)(e.Fragment,{children:["alipayCertPublicKey",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ee.Z,{title:"\u5BC6\u94A5\u5DE5\u5177\u751F\u6210",children:(0,e.jsx)($,{})})})]}),children:(0,e.jsxs)(F.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayPublicCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9alipayCertPublicKey!"}],children:(0,e.jsx)($e,{autoSize:{maxRows:6}})}),(0,e.jsx)(je.Z,{name:"file",multiple:!1,onChange:function(f){if(f.file.status!=="uploading"){var p=new FileReader;p.onload=function(){a.setFieldsValue({aliPayPublicCert:p.result})},p.readAsText(f.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(se.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(xe,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})})]})})},_e=qe,Ve=r(34041),en=r(32400),nn=r(56448),an=r.n(nn),ye=r(2453),rn=function(n){var u=n.onUploadSuccess,m=n.onUploadError,a=(0,y.useState)(!1),h=v()(a,2),R=h[0],B=h[1],G=(0,y.useState)(null),E=v()(G,2),f=E[0],p=E[1];(0,y.useEffect)(function(){function l(){return i.apply(this,arguments)}function i(){return i=S()(s()().mark(function x(){var d,I;return s()().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.prev=0,w.next=3,(0,D.po)();case 3:if(d=w.sent,!(!d.data||!d.data.accessKeySecret||!d.data.accessKeyId)){w.next=7;break}return ye.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),w.abrupt("return");case 7:I=new(an())({region:"oss-cn-beijing",accessKeyId:d.data.accessKeyId,accessKeySecret:d.data.accessKeySecret,stsToken:d.data.securityToken,bucket:d.data.bucket}),p(I),w.next=15;break;case 11:w.prev=11,w.t0=w.catch(0),ye.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25"),m&&m(w.t0);case 15:case"end":return w.stop()}},x,null,[[0,11]])})),i.apply(this,arguments)}l()},[m]);var A=function(){var l=S()(s()().mark(function i(x){var d,I,O,w;return s()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(d=x.file,!(d instanceof File)){j.next=24;break}return B(!0),j.prev=3,j.next=6,(0,en.p)(d);case 6:return I=j.sent,O="matrix/".concat(I,".").concat(d.name.split(".").pop()),j.next=10,f==null?void 0:f.put(O,d,{headers:{"Content-Type":d.type}});case 10:w="https://apks.bzgames.cn/".concat(O),u&&u(w),B(!1),j.next=19;break;case 15:j.prev=15,j.t0=j.catch(3),ye.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"),m&&m(j.t0);case 19:return j.prev=19,B(!1),j.finish(19);case 22:j.next=25;break;case 24:ye.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 25:case"end":return j.stop()}},i,null,[[3,15,19,22]])}));return function(x){return l.apply(this,arguments)}}();return(0,e.jsx)(je.Z,{showUploadList:!1,customRequest:A,disabled:R||!f,children:(0,e.jsx)(se.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(xe,{}),children:"\u9009\u62E9\u6587\u4EF6"})})},Ge=rn,tn=function(n){var u=t.Z.useForm(),m=v()(u,1),a=m[0],h=(0,y.useState)(!1),R=v()(h,2),B=R[0],G=R[1],E=function(){a.submit()},f=function(){n.onCancel()},p=function(){var l=S()(s()().mark(function i(x){var d;return s()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(x){O.next=3;break}return a.resetFields(),O.abrupt("return");case 3:return O.next=5,Ze({appCode:x});case 5:d=O.sent,a.setFieldsValue(d.data);case 7:case"end":return O.stop()}},i)}));return function(x){return l.apply(this,arguments)}}();(0,y.useEffect)(function(){p(n.appCode),G(n.appCode!==void 0),n.appCode||a.resetFields()},[n.appCode]);var A=function(){var l=S()(s()().mark(function i(x){return s()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.prev=0,I.next=3,be(x);case 3:I.next=8;break;case 5:return I.prev=5,I.t0=I.catch(0),I.abrupt("return");case 8:n.onSubmit();case 9:case"end":return I.stop()}},i,null,[[0,5]])}));return function(x){return l.apply(this,arguments)}}();return(0,e.jsx)(Ce.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:E,onCancel:f,children:(0,e.jsxs)(t.Z,{labelCol:{span:5},wrapperCol:{span:18},form:a,onFinish:A,children:[(0,e.jsx)(t.Z.Item,{name:"id",style:{display:"none"},children:(0,e.jsx)(F.Z,{type:"hidden"})}),(0,e.jsx)(t.Z.Item,{name:"code",style:{display:"none"},children:(0,e.jsx)(F.Z,{type:"hidden"})}),(0,e.jsx)(t.Z.Item,{label:"\u5E94\u7528\u540D",name:"name",children:(0,e.jsx)(F.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"\u5E94\u7528\u56FE\u7247",name:"img",children:(0,e.jsxs)(F.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"img",noStyle:!0,children:(0,e.jsx)(F.Z,{})}),(0,e.jsx)(Ge,{onUploadSuccess:function(i){a.setFieldsValue({img:i})}})]})}),(0,e.jsx)(t.Z.Item,{label:"\u4E0B\u8F7D\u5730\u5740",name:"url",children:(0,e.jsxs)(F.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"url",noStyle:!0,children:(0,e.jsx)(F.Z,{})}),(0,e.jsx)(Ge,{onUploadSuccess:function(i){a.setFieldsValue({url:i})}})]})}),(0,e.jsx)(t.Z.Item,{label:"app\u7248\u672C",name:"version",children:(0,e.jsx)(F.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"\u83DC\u5355\u680F\u4E2D",name:"hide",children:(0,e.jsx)(Ve.Z,{options:[{label:"\u5C55\u793A",value:0},{label:"\u9690\u85CF",value:1}]})}),(0,e.jsx)(t.Z.Item,{label:"\u6E20\u9053",name:"channel",children:(0,e.jsx)(Ve.Z,{disabled:B,options:(0,Le.FG)()})})]})})},ln=tn,un=r(72269),sn=function(n){var u=t.Z.useForm(),m=v()(u,1),a=m[0],h=function(){a.submit()},R=function(){n.onCancel()},B=function(){var E=S()(s()().mark(function f(p){var A;return s()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,b({appCode:p});case 2:A=i.sent,a.setFieldsValue(A.data);case 4:case"end":return i.stop()}},f)}));return function(p){return E.apply(this,arguments)}}();(0,y.useEffect)(function(){B(n.appCode)},[n.appCode]);var G=function(){var E=S()(s()().mark(function f(p){return s()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,M({appCode:n.appCode},p);case 3:l.next=8;break;case 5:return l.prev=5,l.t0=l.catch(0),l.abrupt("return");case 8:n.onSubmit();case 9:case"end":return l.stop()}},f,null,[[0,5]])}));return function(p){return E.apply(this,arguments)}}();return(0,e.jsx)(Ce.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:h,onCancel:R,children:(0,e.jsxs)(t.Z,{labelCol:{span:8},wrapperCol:{span:16},form:a,onFinish:G,children:[(0,e.jsx)(t.Z.Item,{name:"umengAppKeyAli",label:"AppKey(\u963F\u91CC\u4E91)",children:(0,e.jsx)(F.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppSecret",label:"AppSecret(\u963F\u91CC\u4E91)",children:(0,e.jsx)(F.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppCode",label:"AppCode(\u963F\u91CC\u4E91)",children:(0,e.jsx)(F.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppKey",label:"AppKey(\u53CB\u76DF)",children:(0,e.jsx)(F.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"linkId",label:"linkId(\u53CB\u76DF)",children:(0,e.jsx)(F.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"bindWx",label:"\u7ED1\u5B9A\u5FAE\u4FE1\u8D26\u53F7",children:(0,e.jsx)(un.Z,{})})]})})},on=sn,cn=function(){var n=(0,y.useState)(!1),u=v()(n,2),m=u[0],a=u[1],h=(0,y.useState)([]),R=v()(h,2),B=R[0],G=R[1],E=(0,y.useState)([]),f=v()(E,2),p=f[0],A=f[1],l=(0,y.useState)(!1),i=v()(l,2),x=i[0],d=i[1],I=(0,y.useState)(!1),O=v()(I,2),w=O[0],k=O[1],j=(0,y.useState)(),H=v()(j,2),Y=H[0],L=H[1],mn=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0},{title:"\u56FE\u7247",dataIndex:"img",hideInSearch:!0,renderText:function(P){return(0,e.jsx)("img",{style:{width:"40px"},src:P})}},{title:"code",dataIndex:"code",copyable:!0,hideInSearch:!0},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",width:200,hideInSearch:!0,renderText:function(P){return(0,e.jsx)(W.Z,{overlayInnerStyle:{padding:0},content:(0,e.jsx)(z.Z,{value:P||"",bordered:!1}),children:(0,e.jsx)("a",{style:{wordBreak:"break-word"},children:P})})}},{title:"secret",dataIndex:"secret",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u83DC\u5355\u680F\u4E2D",dataIndex:"hide",hideInSearch:!0,renderText:function(P){return P===0?(0,e.jsx)(ve.Z,{color:"blue",children:"\u5C55\u793A"}):(0,e.jsx)(ve.Z,{color:"purple",children:"\u9690\u85CF"})}},{title:"\u6E20\u9053",dataIndex:"channel",hideInSearch:!0,renderText:function(P){var K=(0,Le.FG)(),ie=K.find(function(J){return J.value===P});return ie?ie.label:P}},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function(P){return(0,e.jsxs)(He.Z,{gap:"small",wrap:!0,children:[(0,e.jsx)(ve.Z,{color:"magenta",onClick:function(){L(P.code),a(!0)},children:"\u7F16\u8F91"},"edit"),P.enableCash&&(0,e.jsx)(ve.Z,{color:"orange",onClick:function(){L(P.code),k(!0)},children:"\u53CB\u76DF\u914D\u7F6E"},"ediyUMeng"),(0,e.jsx)(ve.Z,{color:"#2db7f5",onClick:function(){L(P.code),d(!0)},children:"\u652F\u4ED8\u5B9D\u914D\u7F6E"},"ediyAliPay")]})}}],Re=function(){var U=S()(s()().mark(function P(){var K;return s()().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,(0,D.ln)();case 2:K=J.sent,K.data&&(G(K.data),A(K.data));case 4:case"end":return J.stop()}},P)}));return function(){return U.apply(this,arguments)}}();(0,y.useEffect)(function(){Re()},[]);var hn=function(P){var K=B.filter(function(ie){var J;return ie==null||(J=ie.name)===null||J===void 0?void 0:J.includes(P)});A(K)};return(0,e.jsxs)(Q._z,{children:[(0,e.jsx)(se.ZP,{style:{marginBottom:"20px"},onClick:function(){a(!0),L(void 0)},children:"\u65B0\u5EFA\u5E94\u7528"}),(0,e.jsx)(X.Z,{search:{defaultCollapsed:!1,optionRender:function(){return[(0,e.jsx)(F.Z,{placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onChange:function(K){return hn(K.target.value)}},"name")]}},onReset:function(){A(B)},columns:mn,dataSource:p}),Y&&x&&(0,e.jsx)(_e,{updateModalOpen:x,appCode:Y||"",onCancel:function(){return d(!1)},onSubmit:function(){d(!1),Re()}}),Y&&w&&(0,e.jsx)(on,{updateModalOpen:w,appCode:Y||"",onCancel:function(){return k(!1)},onSubmit:function(){k(!1)}}),(0,e.jsx)(ln,{updateModalOpen:m,appCode:Y,onCancel:function(){return a(!1)},onSubmit:function(){a(!1),Re()}})]})},dn=cn,pn=function(){var n=(0,T.useModel)("@@initialState"),u=n.initialState,m=u==null?void 0:u.currentUser,a=m&&m.role&&m.role<2;return(0,e.jsx)(Q._z,{children:a?(0,e.jsx)(dn,{}):(0,e.jsx)(ze,{})})},fn=pn},52043:function(Fe,ne,r){r.d(ne,{E7:function(){return T},FG:function(){return Q},RQ:function(){return re},XY:function(){return ae},m0:function(){return s}});var Q=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"}]},T=function(N){var v=[];if(!N)return v;for(var D=N,X=["\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,z=X;W<z.length;W++){var F=z[W];D%2===1&&v.push(F),D=Math.floor(D/2)}return v},ae=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"}]},s=function(N){var v=new Date(N),D=v.getFullYear().toString().padStart(4,"0"),X=(v.getMonth()+1).toString().padStart(2,"0"),W=v.getDate().toString().padStart(2,"0");return D+X+W},re=function(N,v){var D=N.toString();return D.padStart(v,"0")}},32400:function(Fe,ne,r){r.d(ne,{p:function(){return N}});var Q=r(15009),T=r.n(Q),ae=r(99289),s=r.n(ae),re=r(8322),S=r.n(re);function N(D){return v.apply(this,arguments)}function v(){return v=s()(T()().mark(function D(X){return T()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.abrupt("return",new Promise(function(F,y){var oe=new(S()).ArrayBuffer,Z=new FileReader;Z.onload=function(le){var q;oe.append((q=le.target)===null||q===void 0?void 0:q.result),F(oe.end())},Z.onerror=function(le){y(le)},Z.readAsArrayBuffer(X)}));case 1:case"end":return z.stop()}},D)})),v.apply(this,arguments)}},86250:function(Fe,ne,r){r.d(ne,{Z:function(){return fe}});var Q=r(67294),T=r(93967),ae=r.n(T),s=r(98423),re=r(98065),S=r(53124),N=r(91945),v=r(45503);const D=["wrap","nowrap","wrap-reverse"],X=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],W=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],z=(o,g)=>{const b=g.wrap===!0?"wrap":g.wrap;return{[`${o}-wrap-${b}`]:b&&D.includes(b)}},F=(o,g)=>{const b={};return W.forEach(C=>{b[`${o}-align-${C}`]=g.align===C}),b[`${o}-align-stretch`]=!g.align&&!!g.vertical,b},y=(o,g)=>{const b={};return X.forEach(C=>{b[`${o}-justify-${C}`]=g.justify===C}),b};function oe(o,g){return ae()(Object.assign(Object.assign(Object.assign({},z(o,g)),F(o,g)),y(o,g)))}var Z=oe;const le=o=>{const{componentCls:g}=o;return{[g]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},q=o=>{const{componentCls:g}=o;return{[g]:{"&-gap-small":{gap:o.flexGapSM},"&-gap-middle":{gap:o.flexGap},"&-gap-large":{gap:o.flexGapLG}}}},Se=o=>{const{componentCls:g}=o,b={};return D.forEach(C=>{b[`${g}-wrap-${C}`]={flexWrap:C}}),b},ce=o=>{const{componentCls:g}=o,b={};return W.forEach(C=>{b[`${g}-align-${C}`]={alignItems:C}}),b},Ze=o=>{const{componentCls:g}=o,b={};return X.forEach(C=>{b[`${g}-justify-${C}`]={justifyContent:C}}),b},de=()=>({});var be=(0,N.I$)("Flex",o=>{const{paddingXS:g,padding:b,paddingLG:C}=o,M=(0,v.TS)(o,{flexGapSM:g,flexGap:b,flexGapLG:C});return[le(M),q(M),Se(M),ce(M),Ze(M)]},de,{resetStyle:!1}),pe=function(o,g){var b={};for(var C in o)Object.prototype.hasOwnProperty.call(o,C)&&g.indexOf(C)<0&&(b[C]=o[C]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,C=Object.getOwnPropertySymbols(o);M<C.length;M++)g.indexOf(C[M])<0&&Object.prototype.propertyIsEnumerable.call(o,C[M])&&(b[C[M]]=o[C[M]]);return b},fe=Q.forwardRef((o,g)=>{const{prefixCls:b,rootClassName:C,className:M,style:me,flex:Ae,gap:_,children:ke,vertical:ue=!1,component:te="div"}=o,Ee=pe(o,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:V,direction:Ie,getPrefixCls:we}=Q.useContext(S.E_),$=we("flex",b),[ge,Oe,Pe]=be($),De=ue!=null?ue:V==null?void 0:V.vertical,Be=ae()(M,C,V==null?void 0:V.className,$,Oe,Pe,Z($,o),{[`${$}-rtl`]:Ie==="rtl",[`${$}-gap-${_}`]:(0,re.n)(_),[`${$}-vertical`]:De}),t=Object.assign(Object.assign({},V==null?void 0:V.style),me);return Ae&&(t.flex=Ae),_&&!(0,re.n)(_)&&(t.gap=_),ge(Q.createElement(te,Object.assign({ref:g,className:Be,style:t},(0,s.Z)(Ee,["justify","wrap","align"])),ke))})}}]);