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

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