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

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