@nger/fk-upload 1.0.41 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/login.controller.d.ts +1 -1
- package/dist/static/task-manage.js +0 -1
- package/dist/templates/add-fk-login.d.ts +1 -0
- package/dist/templates/add-task.d.ts +1 -0
- package/dist/templates/code.d.ts +1 -0
- package/dist/templates/component.d.ts +1 -0
- package/dist/templates/error.d.ts +1 -0
- package/dist/templates/help.d.ts +1 -0
- package/dist/templates/player.d.ts +1 -0
- package/dist/templates/setting.d.ts +1 -0
- package/dist/templates/task-manage.d.ts +1 -0
- package/dist/templates/tasks/schedule-task.js +6 -1
- package/dist/templates/upload-task.d.ts +1 -1
- package/dist/templates/upload.d.ts +1 -0
- package/dist/templates/upload.js +1 -1
- package/package.json +3 -3
- package/pnpm-lock.yaml +3 -3
@@ -5,7 +5,7 @@ export declare class LoginController {
|
|
5
5
|
cookies: Map<string, Map<string, string>>;
|
6
6
|
constructor(db: Db);
|
7
7
|
login(loginId: string, ctx: Context): Promise<any>;
|
8
|
-
relogin(token: string, loginId: string, ctx: Context): Promise<
|
8
|
+
relogin(token: string, loginId: string, ctx: Context): Promise<string>;
|
9
9
|
private tryLogin;
|
10
10
|
logDog(arg0: number, arg1: number): void;
|
11
11
|
private loginSuccess;
|
package/dist/templates/code.d.ts
CHANGED
package/dist/templates/help.d.ts
CHANGED
@@ -26,13 +26,18 @@ class ScheduleTask extends rabbitmq_1.Task {
|
|
26
26
|
const run = async () => {
|
27
27
|
const accounts = await db.manager.find(entities_1.FkLoginEntity, {});
|
28
28
|
const w7Usernames = accounts.map(account => account.w7Username);
|
29
|
+
console.log(`accounts`, accounts);
|
29
30
|
const users = await w7.manager.find(w7_1.W7UsersEntity, { where: { username: (0, typeorm_2.In)(w7Usernames) } });
|
30
31
|
const uids = users.map(user => user.uid);
|
31
32
|
const uniAccounts = await w7.manager.find(w7_1.W7UniAccountEntity, { where: { createUid: (0, typeorm_2.In)(uids) } });
|
32
33
|
const uniacids = uniAccounts.map(a => a.uniacid);
|
34
|
+
console.log(`uniacids`, uniacids);
|
33
35
|
const tasks = await db.manager.find(entities_1.FkDownloadTaskEntity, { select: ['topicId'] });
|
34
36
|
const ids = tasks.map(task => task.topicId);
|
35
|
-
|
37
|
+
console.log(`topic ids`, ids);
|
38
|
+
const date = new Date('2022-05-14');
|
39
|
+
const topics = await w7.manager.find(w7_1.W7ChatTopicEntity, { where: { uniacid: (0, typeorm_2.In)(uniacids), id: (0, typeorm_2.Not)((0, typeorm_2.In)(ids)), createTime: Math.floor(date.getTime() / 1000) } });
|
40
|
+
console.log(`topics`, topics);
|
36
41
|
topics.map(async (topic) => {
|
37
42
|
if (topic.thirdUrl) {
|
38
43
|
const uniacid = topic.uniacid;
|
package/dist/templates/upload.js
CHANGED
@@ -4,7 +4,6 @@ exports.UploadController = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const core_1 = require("@nger/core");
|
6
6
|
const http_1 = require("@nger/http");
|
7
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
8
7
|
const form_data_1 = tslib_1.__importDefault(require("form-data"));
|
9
8
|
const axios_1 = tslib_1.__importDefault(require("axios"));
|
10
9
|
const typeorm_1 = require("@nger/typeorm");
|
@@ -15,6 +14,7 @@ const url_1 = require("url");
|
|
15
14
|
const fs_extra_1 = require("fs-extra");
|
16
15
|
const request_1 = tslib_1.__importDefault(require("request"));
|
17
16
|
const component_1 = require("./component");
|
17
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
18
18
|
let UploadController = class UploadController {
|
19
19
|
db;
|
20
20
|
constructor(db) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nger/fk-upload",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.42",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/core.js",
|
6
6
|
"types": "dist/core.d.ts",
|
@@ -20,7 +20,7 @@
|
|
20
20
|
"@nger/w7": "^1.0.0",
|
21
21
|
"@nger/ws": "^1.0.0",
|
22
22
|
"@types/download": "^8.0.1",
|
23
|
-
"@types/react": "^18.0.
|
23
|
+
"@types/react": "^18.0.8",
|
24
24
|
"@types/request": "^2.48.8",
|
25
25
|
"axios": "^0.26.1",
|
26
26
|
"cids": "^1.1.9",
|
@@ -29,7 +29,7 @@
|
|
29
29
|
"fs-extra": "^10.1.0",
|
30
30
|
"md5-file": "^5.0.0",
|
31
31
|
"multihashing-async": "^2.1.4",
|
32
|
-
"react": "^18.
|
32
|
+
"react": "^18.1.0",
|
33
33
|
"request": "^2.88.2"
|
34
34
|
},
|
35
35
|
"scripts": {
|
package/pnpm-lock.yaml
CHANGED
@@ -11,7 +11,7 @@ specifiers:
|
|
11
11
|
'@nger/w7': workspace:^1.0.0
|
12
12
|
'@nger/ws': workspace:^1.0.0
|
13
13
|
'@types/download': ^8.0.1
|
14
|
-
'@types/react': ^18.0.
|
14
|
+
'@types/react': ^18.0.8
|
15
15
|
'@types/request': ^2.48.8
|
16
16
|
axios: ^0.26.1
|
17
17
|
cids: ^1.1.9
|
@@ -20,7 +20,7 @@ specifiers:
|
|
20
20
|
fs-extra: ^10.1.0
|
21
21
|
md5-file: ^5.0.0
|
22
22
|
multihashing-async: ^2.1.4
|
23
|
-
react: ^18.
|
23
|
+
react: ^18.1.0
|
24
24
|
request: ^2.88.2
|
25
25
|
|
26
26
|
dependencies:
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
'@nger/rabbitmq': link:../rabbitmq
|
31
31
|
'@nger/redis': link:../redis
|
32
32
|
'@nger/schedule': link:../schedule
|
33
|
-
'@nger/typeorm': link:../
|
33
|
+
'@nger/typeorm': link:../typeorm
|
34
34
|
'@nger/w7': link:../w7
|
35
35
|
'@nger/ws': link:../ws
|
36
36
|
'@types/download': 8.0.1
|