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