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

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[542],{40110:function(H,O,e){var A=e(1413),s=e(67294),S=e(509),i=e(91146),B=function(c,n){return s.createElement(i.Z,(0,A.Z)((0,A.Z)({},c),{},{ref:n,icon:S.Z}))},j=s.forwardRef(B);O.Z=j},86408:function(H,O,e){e.r(O);var A=e(97857),s=e.n(A),S=e(15009),i=e.n(S),B=e(99289),j=e.n(B),m=e(5574),c=e.n(m),n=e(48357),C=e(11415),f=e(39615),b=e(90930),y=e(67539),Z=e(57470),W=e(64317),z=e(34540),V=e(13169),_=e(16250),p=e(27484),D=e.n(p),E=e(9220),l=e(67294),t=e(96974),K=e(58125),ne=e(42767),u=e(85893),re=function(){var h=(0,l.useRef)(),J=(0,l.useState)(void 0),F=c()(J,2),G=F[0],w=F[1],I=function(){return window.innerWidth<=768},N=(0,l.useState)({deviceId:{show:!I()},appName:{show:!I()},platform:{show:!I()},deviceBrand:{show:!I()},deviceName:{show:!I()},ip:{show:!I()},advType:{show:!I()}}),Y=c()(N,2),ee=Y[0],ae=Y[1],se=[{title:"\u7528\u6237id",hideInTable:!0,dataIndex:"userId"},{title:"\u8BBE\u5907id",dataIndex:"deviceId",valueType:"textarea",ellipsis:!0,copyable:!0},{title:"\u5E94\u7528\u540D\u79F0",hideInSearch:!0,dataIndex:"appName",valueType:"textarea"},{title:"\u5E73\u53F0",dataIndex:"platform",width:80,valueEnum:{1:{text:"\u7A7F\u5C71\u7532"},2:{text:"\u817E\u8BAF"},3:{text:"\u767E\u5EA6\u8054\u76DF"},4:{text:"Mintegral"},5:{text:"\u5FEB\u624B"},6:{text:"\u6E38\u53EF\u8D62"},7:{text:"Sigmob"},8:{text:"Admob"}}},{title:"\u5E7F\u544A\u7C7B\u578B",dataIndex:"advType",valueEnum:{1:{text:"\u6A2A\u5E45",status:"Success"},2:{text:"\u63D2\u9875",status:"Success"},3:{text:"\u6FC0\u52B1\u89C6\u9891",status:"Success"}}},{title:"ecpm(\u5143)",dataIndex:"ecpm",hideInSearch:!0,renderText:function(r){return r/100}},{title:"\u91D1\u5E01",dataIndex:"ecpmReal",hideInSearch:!0,renderText:function(r){return r}},{title:"\u8BBE\u5907",dataIndex:"device",hideInSearch:!0,renderText:function(r,P){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{children:P.deviceBrand}),(0,u.jsx)("p",{children:P.deviceName})]})}},{title:"ip",dataIndex:"ip",hideInSearch:!0,valueType:"textarea"},{title:"\u4EE3\u7406",dataIndex:"adminName",hideInSearch:!0,valueType:"textarea"},{title:"\u7528\u6237",dataIndex:"user",hideInSearch:!0,width:150,renderText:function(r,P){if(P.user)return(0,u.jsx)(ne.Z,{data:P.user})}},{title:"\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"}],U=(0,t.UO)(),a=U.code,v=(0,l.useState)(),R=c()(v,2),o=R[0],T=R[1],L=(0,l.useState)([]),g=c()(L,2),X=g[0],k=g[1],q=f.Z.Divider,de=(0,l.useState)(!1),le=c()(de,2),te=le[0],ce=le[1],_e=function(){var d=j()(i()().mark(function r(P){var M;return i()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,(0,n.d1)({appCode:P});case 2:M=x.sent,M.data&&T(M.data);case 4:case"end":return x.stop()}},r)}));return function(P){return d.apply(this,arguments)}}(),oe=function(){var d=j()(i()().mark(function r(P){var M;return i()().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,(0,n.Zb)(s()(s()({},P),{},{code:a}));case 2:M=x.sent,M.data&&k(M.data);case 4:case"end":return x.stop()}},r)}));return function(P){return d.apply(this,arguments)}}();(0,l.useEffect)(function(){var d;(d=h.current)===null||d===void 0||d.reload(),_e(a),oe({code:a})},[a]);var me=X.map(function(d){return{date:function(){var r=d.date+"",P=r.slice(0,4),M=r.slice(4,6),$=r.slice(6,8);return"".concat(P,"-").concat(M,"-").concat($)}(),income:(0,K.P)(d.income)}}),ve={data:me,xField:"date",yField:"income",tooltip:{name:"\u6536\u5165",field:"income"},axis:{date:{title:"\u65E5\u671F"}},title:"\u7D2F\u8BA1"+(0,K.P)(X.reduce(function(d,r){return d+(r.income?r.income:0)},0))+"\u5143",height:400,label:{text:function(r){return r.income>0?r.income:""},textBaseline:"bottom"}};return(0,u.jsx)(b._z,{children:(0,u.jsxs)(V.Z,{defaultActiveKey:"1",centered:!0,style:{backgroundColor:"white",padding:"20px"},children:[(0,u.jsx)(_.Z,{tab:"\u5E7F\u544A\u8BE6\u60C5",children:(0,u.jsx)(y.Z,{headerTitle:G?"\u8868\u683C\u7D2F\u8BA1\uFF1A"+(0,K.P)(G)+"\u5143":"",actionRef:h,rowKey:"key",search:{labelWidth:120},request:function(){var d=j()(i()().mark(function r(P){var M,$,x,ie;return i()().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.next=2,(0,n._5)(s()(s()({},P),{},{code:a}));case 2:return x=Q.sent,P.current===1&&w((ie=x.data)===null||ie===void 0?void 0:ie.sum),Q.abrupt("return",{data:(M=x.data)===null||M===void 0?void 0:M.data,total:($=x.data)===null||$===void 0?void 0:$.total,success:!0});case 5:case"end":return Q.stop()}},r)}));return function(r){return d.apply(this,arguments)}}(),columns:se,columnsState:{value:ee,onChange:function(r){ae(r)}}})},"1"),(0,u.jsxs)(_.Z,{tab:"\u6570\u636E\u603B\u89C8",children:[(0,u.jsx)(E.Z,{onResize:function(r){ce(r.width<596)},children:(0,u.jsx)(f.Z,{children:(0,u.jsxs)(f.Z.Group,{direction:te?"column":"row",children:[(0,u.jsx)(f.Z,{statistic:{title:"\u4E0A\u6708\u6536\u5165\uFF08\u5143\uFF09",value:(0,K.P)(o==null?void 0:o.lastMonthIncome)}}),(0,u.jsx)(q,{type:te?"horizontal":"vertical"}),(0,u.jsx)(f.Z,{statistic:{title:"\u672C\u6708\u6536\u5165\uFF08\u5143\uFF09",value:(0,K.P)(o==null?void 0:o.thisMonthIncome)}}),(0,u.jsx)(q,{type:te?"horizontal":"vertical"}),(0,u.jsx)(f.Z,{statistic:{title:"\u4ECA\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:(0,K.P)(o==null?void 0:o.todayIncome)}}),(0,u.jsx)(q,{type:te?"horizontal":"vertical"}),(0,u.jsx)(f.Z,{statistic:{title:"\u6628\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:(0,K.P)(o==null?void 0:o.yesterdayIncome)}})]})})},"resize-observer"),(0,u.jsxs)(Z.t,{defaultCollapsed:!0,split:!0,onFinish:oe,children:[(0,u.jsx)(W.Z,{label:"\u5E73\u53F0",name:"platform",valueEnum:{1:"\u7A7F\u5C71\u7532",2:"\u817E\u8BAF",3:"\u767E\u5EA6\u8054\u76DF",4:"Mintegral",5:"\u5FEB\u624B",6:"\u6E38\u53EF\u8D62",7:"Sigmob",8:"Admob"}}),(0,u.jsx)(W.Z,{name:"advType",label:"\u5E7F\u544A\u7C7B\u578B",valueEnum:{1:"\u6A2A\u5E45",2:"\u63D2\u9875",3:"\u6FC0\u52B1\u89C6\u9891"}}),(0,u.jsx)(z.Z,{fieldProps:{disabledDate:function(r){return r&&r>=D()().startOf("day")}},name:"date",label:"\u65F6\u95F4"})]}),(0,u.jsx)(C.Z,s()({},ve))]},"2")]})})};O.default=re},42767:function(H,O,e){e.d(O,{Z:function(){return re}});var A=e(5574),s=e.n(A),S=e(55241),i=e(2487),B=e(71230),j=e(7134),m=e(67294),c=e(52043),n=e(58125),C=e(15009),f=e.n(C),b=e(97857),y=e.n(b),Z=e(99289),W=e.n(Z),z=e(40110),V=e(67539),_=e(55102),p=e(42075),D=e(14726),E=e(17788),l=e(4575),t=e(85893),K=function(h){var J=(0,m.useState)(),F=s()(J,2),G=F[0],w=F[1],I=(0,m.useState)(),N=s()(I,2),Y=N[0],ee=N[1],ae=[{title:"\u5E94\u7528\u540D",dataIndex:"appName",ellipsis:!0,hideInSearch:!0,filterDropdown:function(a){var v=a.setSelectedKeys,R=a.selectedKeys,o=a.confirm,T=a.clearFilters;return(0,t.jsxs)("div",{style:{padding:8},children:[(0,t.jsx)(_.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:R[0],onChange:function(g){return v(g.target.value?[g.target.value]:[])},onPressEnter:function(){return o()},style:{marginBottom:8,display:"block"}}),(0,t.jsxs)(p.Z,{children:[(0,t.jsx)(D.ZP,{onClick:function(){return o()},type:"primary",children:"\u641C\u7D22"}),(0,t.jsx)(D.ZP,{onClick:function(){return T&&T()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(a,v){return typeof a=="string"&&typeof(v==null?void 0:v.appName)=="string"?v.appName.includes(a):!1},filterIcon:function(a){return(0,t.jsx)(z.Z,{style:{color:a?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u5E94\u7528\u5305\u540D",dataIndex:"packageName",hideInSearch:!0,ellipsis:!0,filterDropdown:function(a){var v=a.setSelectedKeys,R=a.selectedKeys,o=a.confirm,T=a.clearFilters;return(0,t.jsxs)("div",{style:{padding:8},children:[(0,t.jsx)(_.Z,{placeholder:"\u641C\u7D22\u5305\u540D",value:R[0],onChange:function(g){return v(g.target.value?[g.target.value]:[])},onPressEnter:function(){return o()},style:{marginBottom:8,display:"block"}}),(0,t.jsxs)(p.Z,{children:[(0,t.jsx)(D.ZP,{onClick:function(){return o()},type:"primary",children:"\u641C\u7D22"}),(0,t.jsx)(D.ZP,{onClick:function(){return T&&T()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(a,v){return typeof a=="string"&&typeof(v==null?void 0:v.packageName)=="string"?v.packageName.includes(a):!1},filterIcon:function(a){return(0,t.jsx)(z.Z,{style:{color:a?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}}],se=function(){var U=W()(f()().mark(function a(){var v,R,o,T;return f()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,(0,l.ai)();case 2:v=g.sent,v.data&&(o=[],T=[],(R=h.data.localAppList)===null||R===void 0||R.forEach(function(X){var k;(k=v.data)!==null&&k!==void 0&&k.some(function(q){return q.packageName===X.packageName})?o.push(y()(y()({},X),{},{evil:!0})):T.push(y()(y()({},X),{},{evil:!1}))}),w([].concat(o,T)),ee([].concat(o,T)));case 4:case"end":return g.stop()}},a)}));return function(){return U.apply(this,arguments)}}();return(0,m.useEffect)(function(){se()},[]),(0,t.jsx)(E.Z,{style:{width:600},onCancel:h.onClose,visible:!0,footer:[],children:(0,t.jsx)(V.Z,{onRow:function(a){return{style:{backgroundColor:a.evil?"red":"transparent"}}},search:!1,onReset:function(){ee(G)},columns:ae,dataSource:Y})})},ne=K,u=function(h){var J=(0,m.useState)(!1),F=s()(J,2),G=F[0],w=F[1],I=(0,c.E7)(h.data.env);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S.Z,{content:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{children:[(0,t.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,n.P)(h.data.income),"\u5143"]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,n.D)(h.data.realMoney),"\u5143"]}),h.data.localAppList&&h.data.localAppList.length>0&&(0,t.jsxs)("p",{children:[(0,t.jsx)("label",{children:"\u5DF2\u5B89\u88C5\u5E94\u7528\uFF1A"}),h.data.localAppList.length,"\u4E2A",(0,t.jsx)("a",{onClick:function(){w(!0)},style:{marginLeft:20},children:"\u67E5\u770B"})]}),I.length>0&&(0,t.jsx)(i.Z,{size:"small",header:(0,t.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:I,renderItem:function(Y){return(0,t.jsx)(i.Z.Item,{children:Y})}})]}),children:(0,t.jsxs)(B.Z,{children:[(0,t.jsx)(j.C,{src:h.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,t.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:I.length>0?"red":""},children:["id:",h.data.id,(0,t.jsx)("br",{}),h.data.nickname||h.data.mobile]})]})}),G&&(0,t.jsx)(ne,{onClose:function(){w(!1)},data:h.data})]})},re=u},4575:function(H,O,e){e.d(O,{XM:function(){return C},ai:function(){return c},nr:function(){return z},re:function(){return Z},vE:function(){return b}});var A=e(15009),s=e.n(A),S=e(97857),i=e.n(S),B=e(99289),j=e.n(B),m=e(35312);function c(_){return n.apply(this,arguments)}function n(){return n=j()(s()().mark(function _(p){return s()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",(0,m.request)("/api/superAdmin/evilAppList",i()({method:"GET"},p||{})));case 1:case"end":return E.stop()}},_)})),n.apply(this,arguments)}function C(_,p){return f.apply(this,arguments)}function f(){return f=j()(s()().mark(function _(p,D){return s()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,m.request)("/api/superAdmin/saveEvilApp",i()({method:"POST",headers:{"Content-Type":"application/json"},data:p},D||{})));case 1:case"end":return l.stop()}},_)})),f.apply(this,arguments)}function b(_,p){return y.apply(this,arguments)}function y(){return y=j()(s()().mark(function _(p,D){return s()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,m.request)("/api/superAdmin/saveWhiteUser",i()({method:"POST",params:i()({},p)},D||{})));case 1:case"end":return l.stop()}},_)})),y.apply(this,arguments)}function Z(_,p){return W.apply(this,arguments)}function W(){return W=j()(s()().mark(function _(p,D){return s()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,m.request)("/api/superAdmin/transfer",i()({method:"POST",params:i()({},p)},D||{})));case 1:case"end":return l.stop()}},_)})),W.apply(this,arguments)}function z(_){return V.apply(this,arguments)}function V(){return V=j()(s()().mark(function _(p){return s()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",(0,m.request)("/api/superAdmin/whiteUserList",i()({method:"GET"},p||{})));case 1:case"end":return E.stop()}},_)})),V.apply(this,arguments)}},52043:function(H,O,e){e.d(O,{E7:function(){return s},FG:function(){return A},RQ:function(){return B},XY:function(){return S},aV:function(){return j},m0:function(){return i}});var A=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},s=function(c){var n=[];if(!c)return n;for(var C=c>>1,f=["\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"],b=0,y=f;b<y.length;b++){var Z=y[b];C&1&&n.push(Z),C>>=1}return n},S=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"}]},i=function(c){var n=new Date(c),C=n.getFullYear().toString().padStart(4,"0"),f=(n.getMonth()+1).toString().padStart(2,"0"),b=n.getDate().toString().padStart(2,"0");return C+f+b},B=function(c,n){var C=c.toString();return C.padStart(n,"0")},j=function(c){var n=c;return n<1024?n+" B":(n=parseFloat((n/1024).toFixed(2)),n<1024?n+" KB":(n=parseFloat((n/1024).toFixed(2)),n+" MB"))}},58125:function(H,O,e){e.d(O,{D:function(){return s},P:function(){return A}});var A=function(i){return i?parseFloat((i/1e5).toFixed(2)):0},s=function(i){return i?parseFloat((i/100).toFixed(2)):0}}}]);