@nger/fk-upload 1.0.13 → 1.0.16

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.
@@ -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<"login success" | undefined>;
8
+ relogin(token: string, loginId: string, ctx: Context): Promise<"login fail : username or password error" | undefined>;
9
9
  private tryLogin;
10
10
  logDog(arg0: number, arg1: number): void;
11
11
  private loginSuccess;
@@ -93,7 +93,7 @@ let LoginController = class LoginController {
93
93
  return;
94
94
  }
95
95
  }
96
- return `login success`;
96
+ return `login fail : username or password error`;
97
97
  }
98
98
  async tryLogin(map, data) {
99
99
  return await axios_1.default.post(`https://adm.webportal.top/ajax/login_h.jsp?cmd=loginCorp`, this.toUrl(data), {
package/dist/main.js CHANGED
@@ -45,7 +45,9 @@ AppModule = __decorate([
45
45
  })
46
46
  ], AppModule);
47
47
  exports.AppModule = AppModule;
48
- (0, core_1.platformCore)().bootstrap(AppModule);
48
+ (0, core_1.platformCore)().bootstrap(AppModule).then(() => {
49
+ process.send('ready');
50
+ });
49
51
  process.on('uncaughtException', (err) => {
50
52
  console.log(err.message);
51
53
  });
@@ -35,6 +35,7 @@ let HelpController = class HelpController {
35
35
  react_1.default.createElement("tr", null,
36
36
  react_1.default.createElement("td", null, "username"),
37
37
  react_1.default.createElement("td", null, "w7-username"),
38
+ react_1.default.createElement("td", null),
38
39
  react_1.default.createElement("td", null))),
39
40
  react_1.default.createElement("tbody", null, list.map((li, key) => {
40
41
  const url = `/@nger/fk-upload/login?loginId=${li.fkLoginId}`;
@@ -101,6 +101,7 @@ let TaskService = class TaskService {
101
101
  else {
102
102
  if (reply) {
103
103
  const setting = JSON.parse(reply);
104
+ console.log(task);
104
105
  if (task.name === setting.name) {
105
106
  this.schedule.scheduleJob(task.name, task.rule, async (time) => {
106
107
  const accounts = await this.db.manager.find(entities_1.FkLoginEntity, {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nger/fk-upload",
3
- "version": "1.0.13",
3
+ "version": "1.0.16",
4
4
  "description": "",
5
5
  "main": "dist/core.js",
6
6
  "types": "dist/core.d.ts",