Browse Source

feat: 转账测试

qiji
nili 6 months ago
parent
commit
3723e440eb
  1. 1
      dist/971.677bb358.async.js
  2. 1
      dist/_umi_route_preload_helper.359b15d9.js
  3. 1
      dist/_umi_route_preload_helper.ecebd6a3.js
  4. 4
      dist/index.html
  5. 1
      dist/p__AdminManagement.0afb1c76.async.js
  6. 1
      dist/p__AdminManagement.3439b2cb.async.js
  7. 1
      dist/p__AdvRecordListV2.185cc304.async.js
  8. 1
      dist/p__AdvRecordListV2.b284abcd.async.js
  9. 1
      dist/p__App__AppManagement.5d7b6a83.async.js
  10. 1
      dist/p__App__AppManagement.f548d89d.async.js
  11. 1
      dist/p__MoneyManagement.6438f0bb.async.js
  12. 1
      dist/p__MoneyManagement.b9d33efc.async.js
  13. 1
      dist/p__Proxy__ProxyAdvRecordListV2.8a4ba9c6.async.js
  14. 1
      dist/p__Proxy__ProxyAdvRecordListV2.a4fe446b.async.js
  15. 1
      dist/p__Proxy__ProxyUserManagement.8c01d23c.async.js
  16. 1
      dist/p__Proxy__ProxyUserManagement.9b5c45a4.async.js
  17. 1
      dist/p__SuperAdmin.aebf7b0e.async.js
  18. 1
      dist/p__SuperAdmin.ec6dec07.async.js
  19. 1
      dist/p__UserManagement.17af3678.async.js
  20. 1
      dist/p__UserManagement.98f62b33.async.js
  21. 176
      dist/umi.e20ce413.js
  22. 46
      src/pages/App/AliPayTransferForm.tsx
  23. 36
      src/pages/App/SuperAdminAppManagement.tsx
  24. 30
      src/services/matrix/admin.ts
  25. 15
      src/services/matrix/superAdmin.ts
  26. 29
      src/services/matrix/typings.d.ts

1
dist/971.677bb358.async.js

File diff suppressed because one or more lines are too long

1
dist/_umi_route_preload_helper.359b15d9.js

@ -1 +0,0 @@
!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"ant-design-pro","b":"webpack","f":[["134.6fc81d91.async.js",134],["169.57647c7d.async.js",169],["p__Welcome.61596037.async.js",185],["p__MoneyManagement.b9d33efc.async.js",190],["247.3fe8fb10.async.js",247],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.4594a64b.async.js",301],["p__User__Login__index.9d3ab92e.async.js",366],["p__DeviceOwnerApp.c61abcd9.async.js",371],["390.41467286.async.js",390],["393.38316f72.async.js",393],["397.fb5f72c1.async.js",397],["p__SuperAdmin.aebf7b0e.async.js",455],["p__Proxy__ProxyUserManagement.8c01d23c.async.js",526],["531.35af34f5.async.js",531],["539.290aefb9.async.js",539],["p__AdvRecordListV2.b284abcd.async.js",542],["p__Bind.b6ee068f.async.js",557],["559.016bfdbb.async.js",559],["p__404.0c100574.async.js",571],["635.20e45f05.async.js",635],["p__App__AppManagement.f548d89d.async.js",731],["761.f7bbde11.async.js",761],["p__AdminManagement.0afb1c76.async.js",816],["841.614ef4c0.async.js",841],["p__AdvRecordList.fc092f59.async.js",857],["p__UserManagement.17af3678.async.js",903],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930],["p__Proxy__ProxyAdvRecordListV2.a4fe446b.async.js",990]],"r":{"/*":[19,27],"/":[0,5,6,18,20,27],"/welcome":[0,1,2,10,18,28,5,6,20,27],"/super":[0,1,4,12,14,15,27,28,5,6,18,20],"/adminList":[0,1,14,15,22,23,27,5,6,18,20],"/bind":[0,1,10,11,17,18,28,5,6,20,27],"/appList":[0,1,4,11,14,15,21,27,28,5,6,18,20],"/advList/:code":[0,1,14,15,18,24,25,27,28,5,6,20],"/advListV2/:code":[0,1,14,15,16,18,24,27,28,5,6,20],"/user/:code":[0,1,14,15,26,27,28,5,6,18,20],"/money/:code":[0,1,3,14,15,27,28,5,6,18,20],"/app/:code":[0,1,8,14,15,18,24,27,28,5,6,20],"/user/login":[0,1,7,14],"/proxy/advListV2/:code":[0,1,14,15,18,24,27,28,29,5,6,20],"/proxy/user/:code":[0,1,13,14,15,27,28,5,6,18,20]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}();

1
dist/_umi_route_preload_helper.ecebd6a3.js

@ -0,0 +1 @@
!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"ant-design-pro","b":"webpack","f":[["134.6fc81d91.async.js",134],["169.57647c7d.async.js",169],["p__Welcome.61596037.async.js",185],["p__MoneyManagement.6438f0bb.async.js",190],["247.3fe8fb10.async.js",247],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.4594a64b.async.js",301],["p__User__Login__index.9d3ab92e.async.js",366],["p__DeviceOwnerApp.c61abcd9.async.js",371],["390.41467286.async.js",390],["393.38316f72.async.js",393],["397.fb5f72c1.async.js",397],["p__SuperAdmin.ec6dec07.async.js",455],["p__Proxy__ProxyUserManagement.9b5c45a4.async.js",526],["531.35af34f5.async.js",531],["539.290aefb9.async.js",539],["p__AdvRecordListV2.185cc304.async.js",542],["p__Bind.b6ee068f.async.js",557],["559.016bfdbb.async.js",559],["p__404.0c100574.async.js",571],["635.20e45f05.async.js",635],["p__App__AppManagement.5d7b6a83.async.js",731],["761.f7bbde11.async.js",761],["p__AdminManagement.3439b2cb.async.js",816],["841.614ef4c0.async.js",841],["p__AdvRecordList.fc092f59.async.js",857],["p__UserManagement.98f62b33.async.js",903],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930],["971.677bb358.async.js",971],["p__Proxy__ProxyAdvRecordListV2.8a4ba9c6.async.js",990]],"r":{"/*":[19,27],"/":[0,5,6,18,20,27],"/welcome":[0,1,2,10,18,28,5,6,20,27],"/super":[0,1,4,12,14,15,27,28,5,6,18,20],"/adminList":[0,1,14,15,22,23,27,29,5,6,18,20],"/bind":[0,1,10,11,17,18,28,5,6,20,27],"/appList":[0,1,4,11,14,15,21,27,28,5,6,18,20],"/advList/:code":[0,1,14,15,18,24,25,27,28,5,6,20],"/advListV2/:code":[0,1,14,15,16,18,24,27,28,5,6,20],"/user/:code":[0,1,14,15,26,27,28,29,5,6,18,20],"/money/:code":[0,1,3,14,15,27,28,5,6,18,20],"/app/:code":[0,1,8,14,15,18,24,27,28,5,6,20],"/user/login":[0,1,7,14],"/proxy/advListV2/:code":[0,1,14,15,18,24,27,28,30,5,6,20],"/proxy/user/:code":[0,1,13,14,15,27,28,29,5,6,18,20]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}();

4
dist/index.html

@ -7,10 +7,10 @@
<title>Ant Design Pro</title>
<link rel="stylesheet" href="/umi.1ca9308c.css">
<script async src="/scripts/loading.js"></script>
<script src="/_umi_route_preload_helper.359b15d9.js"></script>
<script src="/_umi_route_preload_helper.ecebd6a3.js"></script>
</head>
<body>
<div id="root"></div>
<script src="/umi.d291380e.js"></script>
<script src="/umi.e20ce413.js"></script>
</body>
</html>

1
dist/p__AdminManagement.0afb1c76.async.js

File diff suppressed because one or more lines are too long

1
dist/p__AdminManagement.3439b2cb.async.js

File diff suppressed because one or more lines are too long

1
dist/p__AdvRecordListV2.185cc304.async.js

File diff suppressed because one or more lines are too long

1
dist/p__AdvRecordListV2.b284abcd.async.js

File diff suppressed because one or more lines are too long

1
dist/p__App__AppManagement.5d7b6a83.async.js

File diff suppressed because one or more lines are too long

1
dist/p__App__AppManagement.f548d89d.async.js

File diff suppressed because one or more lines are too long

1
dist/p__MoneyManagement.6438f0bb.async.js

File diff suppressed because one or more lines are too long

1
dist/p__MoneyManagement.b9d33efc.async.js

File diff suppressed because one or more lines are too long

1
dist/p__Proxy__ProxyAdvRecordListV2.8a4ba9c6.async.js

File diff suppressed because one or more lines are too long

1
dist/p__Proxy__ProxyAdvRecordListV2.a4fe446b.async.js

File diff suppressed because one or more lines are too long

1
dist/p__Proxy__ProxyUserManagement.8c01d23c.async.js

File diff suppressed because one or more lines are too long

1
dist/p__Proxy__ProxyUserManagement.9b5c45a4.async.js

File diff suppressed because one or more lines are too long

1
dist/p__SuperAdmin.aebf7b0e.async.js

File diff suppressed because one or more lines are too long

1
dist/p__SuperAdmin.ec6dec07.async.js

File diff suppressed because one or more lines are too long

1
dist/p__UserManagement.17af3678.async.js

File diff suppressed because one or more lines are too long

1
dist/p__UserManagement.98f62b33.async.js

File diff suppressed because one or more lines are too long

176
dist/umi.d291380e.js → dist/umi.e20ce413.js

File diff suppressed because one or more lines are too long

46
src/pages/App/AliPayTransferForm.tsx

@ -0,0 +1,46 @@
import { Form, Input, Modal, message } from 'antd';
import React from 'react';
import { transfer } from '../../services/matrix/superAdmin';
export type AliPayTransferFormProps = {
onCancel: () => void;
onSubmit: () => void;
appCode: string;
};
const AliPayTransferForm: React.FC<AliPayTransferFormProps> = (props) => {
const [form] = Form.useForm();
const handleOk = () => {
form.submit();
};
const handleCancel = () => {
props.onCancel();
};
const handleSaveApp = async (values: API.transferParams) => {
try {
await transfer({ ...values, appCode: props.appCode });
} catch (e) {
return;
}
message.success('转账成功,请查看支付宝账户是否到账');
props.onSubmit();
};
return (
<Modal title="编辑" visible={true} onOk={handleOk} onCancel={handleCancel}>
<Form labelCol={{ span: 4 }} wrapperCol={{ span: 18 }} form={form} onFinish={handleSaveApp}>
<Form.Item name="name" label="姓名">
<Input />
</Form.Item>
<Form.Item name="aliAccount" label="支付宝账号">
<Input />
</Form.Item>
</Form>
</Modal>
);
};
export default AliPayTransferForm;

36
src/pages/App/SuperAdminAppManagement.tsx

@ -4,6 +4,7 @@ import { PageContainer, ProColumns, ProTable } from '@ant-design/pro-components'
import { Button, Flex, Input, Popover, QRCode, Tag } from 'antd';
import { useEffect, useState } from 'react';
import AliPayConfigForm from './AliPayConfigForm';
import AliPayTransferForm from './AliPayTransferForm';
import AppBasicConfigForm from './AppBasicConfigForm';
import UMengConfigForm from './UMengConfigForm';
@ -14,6 +15,7 @@ const SuperAdminAppManagement = () => {
const [aliPayVisible, setAliPayVisible] = useState(false);
const [uMengVisible, setUMengVisible] = useState(false);
const [transferVisible, setTransferVisible] = useState(false);
const [appCode, setAppCode] = useState<string>();
@ -36,6 +38,19 @@ const SuperAdminAppManagement = () => {
copyable: true,
hideInSearch: true,
},
{
title: '应用市场',
dataIndex: 'code',
copyable: true,
hideInSearch: true,
renderText: (code) => {
return (
<a rel="noreferrer" target={'_blank'} href={'https://pomelo.bzgames.cn/market/' + code}>
https://pomelo.bzgames.cn/market/{code}
</a>
);
},
},
{
title: '下载地址',
dataIndex: 'url',
@ -117,6 +132,18 @@ const SuperAdminAppManagement = () => {
>
</Tag>
{record.enableCash && (
<Tag
key="ediyTransfer"
color="cyan"
onClick={() => {
setAppCode(record.code);
setTransferVisible(true);
}}
>
</Tag>
)}
</Flex>
),
},
@ -200,6 +227,15 @@ const SuperAdminAppManagement = () => {
fetchApp();
}}
/>
{appCode && transferVisible && (
<AliPayTransferForm
appCode={appCode || ''}
onCancel={() => setTransferVisible(false)}
onSubmit={() => {
setTransferVisible(false);
}}
/>
)}
</PageContainer>
);
};

30
src/services/matrix/admin.ts

@ -49,6 +49,36 @@ export async function advList(body: API.AdvRecordQuery, options?: { [key: string
});
}
/** 此处后端没有提供注释 GET /api/admin/advTypeIncomeHistory */
export async function advTypeIncomeHistory(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.advTypeIncomeHistoryParams,
options?: { [key: string]: any },
) {
return request<API.RListAdvTypeIncome>('/api/admin/advTypeIncomeHistory', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 GET /api/admin/advTypeIncomeToday */
export async function advTypeIncomeToday(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.advTypeIncomeTodayParams,
options?: { [key: string]: any },
) {
return request<API.RListAdvTypeIncome>('/api/admin/advTypeIncomeToday', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 GET /api/admin/appList */
export async function appList(options?: { [key: string]: any }) {
return request<API.RListMatrixAppBo>('/api/admin/appList', {

15
src/services/matrix/superAdmin.ts

@ -37,6 +37,21 @@ export async function saveWhiteUser(
});
}
/** 此处后端没有提供注释 POST /api/superAdmin/transfer */
export async function transfer(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.transferParams,
options?: { [key: string]: any },
) {
return request<API.RVoid>('/api/superAdmin/transfer', {
method: 'POST',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 GET /api/superAdmin/whiteUserList */
export async function whiteUserList(options?: { [key: string]: any }) {
return request<API.RListWhiteUserBo>('/api/superAdmin/whiteUserList', {

29
src/services/matrix/typings.d.ts

@ -27,6 +27,21 @@ declare namespace API {
userId?: number;
};
type AdvTypeIncome = {
advType?: number;
income?: number;
};
type advTypeIncomeHistoryParams = {
code: string;
beginDate?: number;
endDate?: number;
};
type advTypeIncomeTodayParams = {
code: string;
};
type AliPayConfigBo = {
aliPayPublicCert?: string;
aliPayRootCert?: string;
@ -64,6 +79,8 @@ declare namespace API {
enablePangolin?: boolean;
pangolinDailyLimit?: number;
tencentDailyLimit?: number;
videoDuration?: number;
popUpDuration?: number;
};
type calcParams = {
@ -344,6 +361,12 @@ declare namespace API {
data?: AppNormalConfig;
};
type RListAdvTypeIncome = {
code?: number;
message?: string;
data?: AdvTypeIncome[];
};
type RListDateIncome = {
code?: number;
message?: string;
@ -499,6 +522,12 @@ declare namespace API {
endpoint?: string;
};
type transferParams = {
name: string;
aliAccount: string;
appCode: string;
};
type UmengConfigBo = {
umengAppKeyAli?: string;
umengAppSecret?: string;

Loading…
Cancel
Save