Browse Source

feat: js等资源上传oss

lihao
nili 4 months ago
parent
commit
49a39d1f15
  1. 2
      config/config.ts
  2. 4
      dist/635.8a884f26.async.js
  3. 1
      dist/971.8a6ac777.async.js
  4. 1
      dist/_umi_route_preload_helper.46ceb7d1.js
  5. 1
      dist/_umi_route_preload_helper.517c19ad.js
  6. 6
      dist/index.html
  7. 1
      dist/p__AdminManagement.3ee3c339.async.js
  8. 1
      dist/p__AdminManagement.5355b667.async.js
  9. 1
      dist/p__AdvRecordListV2.ac86b512.async.js
  10. 1
      dist/p__AdvRecordListV2.f8055b8e.async.js
  11. 1
      dist/p__Proxy__ProxyAdvRecordListV2.95a376ea.async.js
  12. 1
      dist/p__Proxy__ProxyAdvRecordListV2.f54d5e7d.async.js
  13. 1
      dist/p__Proxy__ProxyUserManagement.107b3f81.async.js
  14. 1
      dist/p__Proxy__ProxyUserManagement.752f65f0.async.js
  15. 1
      dist/p__SuperAdmin.497ff705.async.js
  16. 1
      dist/p__SuperAdmin.4df5c668.async.js
  17. 1
      dist/p__UserManagement.00a0e9d3.async.js
  18. 1
      dist/p__UserManagement.7f7499c6.async.js
  19. 6
      dist/umi.b63ef643.js
  20. 1
      package.json
  21. 2
      src/services/matrix/index.ts
  22. 77
      src/services/matrix/superAdmin.ts
  23. 27
      src/services/matrix/typings.d.ts

2
config/config.ts

@ -1,6 +1,5 @@
// https://umijs.org/config/ // https://umijs.org/config/
import { defineConfig } from '@umijs/max'; import { defineConfig } from '@umijs/max';
import { join } from 'path';
import defaultSettings from './defaultSettings'; import defaultSettings from './defaultSettings';
import proxy from './proxy'; import proxy from './proxy';
import routes from './routes'; import routes from './routes';
@ -153,4 +152,5 @@ export default defineConfig({
}, },
esbuildMinifyIIFE: true, esbuildMinifyIIFE: true,
requestRecord: {}, requestRecord: {},
publicPath: 'https://apks.bzgames.cn/matrix_fe/',
}); });

4
dist/635.20e45f05.async.js → dist/635.8a884f26.async.js

File diff suppressed because one or more lines are too long

1
dist/971.8a6ac777.async.js

File diff suppressed because one or more lines are too long

1
dist/_umi_route_preload_helper.46ceb7d1.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],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.4594a64b.async.js",301],["343.7ff141fb.async.js",343],["p__User__Login__index.9d3ab92e.async.js",366],["p__DeviceOwnerApp.1ed365d2.async.js",371],["390.41467286.async.js",390],["393.38316f72.async.js",393],["397.fb5f72c1.async.js",397],["435.88a89336.async.js",435],["p__SuperAdmin.497ff705.async.js",455],["p__Proxy__ProxyUserManagement.107b3f81.async.js",526],["531.35af34f5.async.js",531],["539.290aefb9.async.js",539],["p__AdvRecordListV2.ac86b512.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.9a034487.async.js",731],["761.f7bbde11.async.js",761],["p__AdminManagement.3ee3c339.async.js",816],["p__AdvRecordList.d682c9eb.async.js",857],["p__UserManagement.00a0e9d3.async.js",903],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930],["p__Proxy__ProxyAdvRecordListV2.f54d5e7d.async.js",990]],"r":{"/*":[19,26],"/":[0,3,4,18,20,26],"/welcome":[0,1,2,9,18,27,3,4,20,26],"/super":[0,1,5,12,14,15,26,27,3,4,18,20],"/adminList":[0,1,14,15,22,23,26,3,4,18,20],"/bind":[0,1,9,10,17,18,27,3,4,20,26],"/appList":[0,1,5,10,14,15,21,26,27,3,4,18,20],"/advList/:code":[0,1,11,14,15,18,24,26,27,3,4,20],"/advListV2/:code":[0,1,9,11,14,15,16,18,26,27,3,4,20],"/user/:code":[0,1,14,15,25,26,27,3,4,18,20],"/app/:code":[0,1,7,11,14,15,18,26,27,3,4,20],"/user/login":[0,1,6,14],"/proxy/advListV2/:code":[0,1,11,14,15,18,26,27,28,3,4,20],"/proxy/user/:code":[0,1,13,14,15,26,27,3,4,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.517c19ad.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],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.4594a64b.async.js",301],["343.7ff141fb.async.js",343],["p__User__Login__index.9d3ab92e.async.js",366],["p__DeviceOwnerApp.1ed365d2.async.js",371],["390.41467286.async.js",390],["393.38316f72.async.js",393],["397.fb5f72c1.async.js",397],["435.88a89336.async.js",435],["p__SuperAdmin.4df5c668.async.js",455],["p__Proxy__ProxyUserManagement.752f65f0.async.js",526],["531.35af34f5.async.js",531],["539.290aefb9.async.js",539],["p__AdvRecordListV2.f8055b8e.async.js",542],["p__Bind.b6ee068f.async.js",557],["559.016bfdbb.async.js",559],["p__404.0c100574.async.js",571],["635.8a884f26.async.js",635],["p__App__AppManagement.9a034487.async.js",731],["761.f7bbde11.async.js",761],["p__AdminManagement.5355b667.async.js",816],["p__AdvRecordList.d682c9eb.async.js",857],["p__UserManagement.7f7499c6.async.js",903],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930],["971.8a6ac777.async.js",971],["p__Proxy__ProxyAdvRecordListV2.95a376ea.async.js",990]],"r":{"/*":[19,26],"/":[0,3,4,18,20,26],"/welcome":[0,1,2,9,18,27,3,4,20,26],"/super":[0,1,5,12,14,15,26,27,3,4,18,20],"/adminList":[0,1,14,15,22,23,26,28,3,4,18,20],"/bind":[0,1,9,10,17,18,27,3,4,20,26],"/appList":[0,1,5,10,14,15,21,26,27,3,4,18,20],"/advList/:code":[0,1,11,14,15,18,24,26,27,3,4,20],"/advListV2/:code":[0,1,9,11,14,15,16,18,26,27,3,4,20],"/user/:code":[0,1,14,15,25,26,27,28,3,4,18,20],"/app/:code":[0,1,7,11,14,15,18,26,27,3,4,20],"/user/login":[0,1,6,14],"/proxy/advListV2/:code":[0,1,11,14,15,18,26,27,29,3,4,20],"/proxy/user/:code":[0,1,13,14,15,26,27,28,3,4,18,20]}},{publicPath:"https://apks.bzgames.cn/matrix_fe/"});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)}))}}();

6
dist/index.html

@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Ant Design Pro</title> <title>Ant Design Pro</title>
<link rel="stylesheet" href="/umi.1ca9308c.css"> <link rel="stylesheet" href="https://apks.bzgames.cn/matrix_fe/umi.1ca9308c.css">
<script async src="/scripts/loading.js"></script> <script async src="/scripts/loading.js"></script>
<script src="/_umi_route_preload_helper.46ceb7d1.js"></script> <script src="https://apks.bzgames.cn/matrix_fe/_umi_route_preload_helper.517c19ad.js"></script>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
<script src="/umi.b81b7e17.js"></script> <script src="https://apks.bzgames.cn/matrix_fe/umi.b63ef643.js"></script>
</body> </body>
</html> </html>

1
dist/p__AdminManagement.3ee3c339.async.js

File diff suppressed because one or more lines are too long

1
dist/p__AdminManagement.5355b667.async.js

File diff suppressed because one or more lines are too long

1
dist/p__AdvRecordListV2.ac86b512.async.js

File diff suppressed because one or more lines are too long

1
dist/p__AdvRecordListV2.f8055b8e.async.js

File diff suppressed because one or more lines are too long

1
dist/p__Proxy__ProxyAdvRecordListV2.95a376ea.async.js

File diff suppressed because one or more lines are too long

1
dist/p__Proxy__ProxyAdvRecordListV2.f54d5e7d.async.js

File diff suppressed because one or more lines are too long

1
dist/p__Proxy__ProxyUserManagement.107b3f81.async.js

File diff suppressed because one or more lines are too long

1
dist/p__Proxy__ProxyUserManagement.752f65f0.async.js

File diff suppressed because one or more lines are too long

1
dist/p__SuperAdmin.497ff705.async.js

File diff suppressed because one or more lines are too long

1
dist/p__SuperAdmin.4df5c668.async.js

File diff suppressed because one or more lines are too long

1
dist/p__UserManagement.00a0e9d3.async.js

File diff suppressed because one or more lines are too long

1
dist/p__UserManagement.7f7499c6.async.js

File diff suppressed because one or more lines are too long

6
dist/umi.b81b7e17.js → dist/umi.b63ef643.js

File diff suppressed because one or more lines are too long

1
package.json

@ -18,6 +18,7 @@
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src ", "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src ",
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src", "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
"lint:prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\" --end-of-line auto", "lint:prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\" --end-of-line auto",
"online": "npm run build && ossutil cp -rf dist/ oss://bzgames/matrix_fe/",
"openapi": "max openapi", "openapi": "max openapi",
"prepare": "husky install", "prepare": "husky install",
"prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\"", "prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\"",

2
src/services/matrix/index.ts

@ -9,8 +9,8 @@ import * as matrixMoneyController from './matrixMoneyController';
import * as matrixUserController from './matrixUserController'; import * as matrixUserController from './matrixUserController';
import * as superAdmin from './superAdmin'; import * as superAdmin from './superAdmin';
export default { export default {
superAdmin,
matrixUserController, matrixUserController,
superAdmin,
admin, admin,
matrixMoneyController, matrixMoneyController,
device, device,

77
src/services/matrix/superAdmin.ts

@ -2,17 +2,40 @@
/* eslint-disable */ /* eslint-disable */
import { request } from '@umijs/max'; import { request } from '@umijs/max';
/** 此处后端没有提供注释 GET /api/superAdmin/evilAppList */ /** 此处后端没有提供注释 POST /api/admin/superAdmin/addSchedule */
export async function addScheduleV2(
body: API.AddMockScheduleReq,
options?: { [key: string]: any },
) {
return request<API.RVoid>('/api/admin/superAdmin/addSchedule', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** 此处后端没有提供注释 GET /api/admin/superAdmin/evilAppList */
export async function evilAppList(options?: { [key: string]: any }) { export async function evilAppList(options?: { [key: string]: any }) {
return request<API.RListMatrixEvilApp>('/api/superAdmin/evilAppList', { return request<API.RListMatrixEvilApp>('/api/admin/superAdmin/evilAppList', {
method: 'GET', method: 'GET',
...(options || {}), ...(options || {}),
}); });
} }
/** 此处后端没有提供注释 POST /api/superAdmin/saveEvilApp */ /** 此处后端没有提供注释 GET /api/admin/superAdmin/innerUserList */
export async function innerUserList(options?: { [key: string]: any }) {
return request<API.RListWhiteUserBo>('/api/admin/superAdmin/innerUserList', {
method: 'GET',
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/admin/superAdmin/saveEvilApp */
export async function saveEvilApp(body: API.MatrixEvilApp, options?: { [key: string]: any }) { export async function saveEvilApp(body: API.MatrixEvilApp, options?: { [key: string]: any }) {
return request<API.RVoid>('/api/superAdmin/saveEvilApp', { return request<API.RVoid>('/api/admin/superAdmin/saveEvilApp', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
@ -22,13 +45,51 @@ export async function saveEvilApp(body: API.MatrixEvilApp, options?: { [key: str
}); });
} }
/** 此处后端没有提供注释 POST /api/superAdmin/saveWhiteUser */ /** 此处后端没有提供注释 POST /api/admin/superAdmin/saveInnerUser */
export async function saveInnerUser(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.saveInnerUserParams,
options?: { [key: string]: any },
) {
return request<API.RVoid>('/api/admin/superAdmin/saveInnerUser', {
method: 'POST',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/admin/superAdmin/saveWhiteUser */
export async function saveWhiteUser( export async function saveWhiteUser(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象) // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.saveWhiteUserParams, params: API.saveWhiteUserParams,
options?: { [key: string]: any }, options?: { [key: string]: any },
) { ) {
return request<API.RVoid>('/api/superAdmin/saveWhiteUser', { return request<API.RVoid>('/api/admin/superAdmin/saveWhiteUser', {
method: 'POST',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 GET /api/admin/superAdmin/scheduleList */
export async function scheduleListV2(options?: { [key: string]: any }) {
return request<API.RListMatrixMockScheduleV2>('/api/admin/superAdmin/scheduleList', {
method: 'GET',
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/admin/superAdmin/transfer */
export async function transfer(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.transferParams,
options?: { [key: string]: any },
) {
return request<API.RVoid>('/api/admin/superAdmin/transfer', {
method: 'POST', method: 'POST',
params: { params: {
...params, ...params,
@ -37,9 +98,9 @@ export async function saveWhiteUser(
}); });
} }
/** 此处后端没有提供注释 GET /api/superAdmin/whiteUserList */ /** 此处后端没有提供注释 GET /api/admin/superAdmin/whiteUserList */
export async function whiteUserList(options?: { [key: string]: any }) { export async function whiteUserList(options?: { [key: string]: any }) {
return request<API.RListWhiteUserBo>('/api/superAdmin/whiteUserList', { return request<API.RListWhiteUserBo>('/api/admin/superAdmin/whiteUserList', {
method: 'GET', method: 'GET',
...(options || {}), ...(options || {}),
}); });

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

@ -271,6 +271,17 @@ declare namespace API {
updatedAt?: string; updatedAt?: string;
}; };
type MatrixMockScheduleV2 = {
id?: number;
appId?: number;
incomeYuan?: number;
mockIncome?: number;
status?: number;
scheduleTime?: string;
createdAt?: string;
updatedAt?: string;
};
type MatrixWhiteDevice = { type MatrixWhiteDevice = {
id?: number; id?: number;
deviceId?: string; deviceId?: string;
@ -403,6 +414,12 @@ declare namespace API {
data?: MatrixMockSchedule[]; data?: MatrixMockSchedule[];
}; };
type RListMatrixMockScheduleV2 = {
code?: number;
message?: string;
data?: MatrixMockScheduleV2[];
};
type RListMatrixWhiteDevice = { type RListMatrixWhiteDevice = {
code?: number; code?: number;
message?: string; message?: string;
@ -495,6 +512,10 @@ declare namespace API {
adminId: number; adminId: number;
}; };
type saveInnerUserParams = {
userId: number;
};
type saveNormalConfigParams = { type saveNormalConfigParams = {
appCode: string; appCode: string;
}; };
@ -522,6 +543,12 @@ declare namespace API {
endpoint?: string; endpoint?: string;
}; };
type transferParams = {
name: string;
aliAccount: string;
appCode: string;
};
type UmengConfigBo = { type UmengConfigBo = {
umengAppKeyAli?: string; umengAppKeyAli?: string;
umengAppSecret?: string; umengAppSecret?: string;

Loading…
Cancel
Save