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