Docker Website (12) Wiz Note

1 Introduction

Weizhi notes

Weizhi Note is not only a cloud service note-taking software that helps you record life and work, but also a collaboration tool that can share data and communicate based on data.
You can record and view valuable information anytime and anywhere, and all data can be kept consistent through synchronization on computers, mobile phones, tablets, and web pages.
Weizhi Note is positioned as a high-efficiency work note, a mobile application that focuses on work notes, and is the only cloud note product in China that is "work notes".
——Baidu Encyclopedia

As we all know, we can use WordPress, Typecho and other blog programs to build a blog, use the blog to write notes, and record daily life. But my blog is more than that. These notes are mixed in various tutorial articles, so I often can't find them when I look for them.

So why not set up a private note?

2. Installation

2.1, command line

Mac:

Comment first then view it after your comment is approved. Join QQ Group to display all hidden texts.

Linux:
Comment first then view it after your comment is approved. Join QQ Group to display all hidden texts.

3. Lift restrictions

The free version has only 5 users, which can be modified to any number.

In the pagoda, click Directory in the container column:

Directory

edit

/wiz/app/wizserver/node_modules/node-rsa/src/NodeRSA.js

look up

JavaScript
1
2
3
4
5
6
7
8
/**
* Decrypting data method with public key
*
* Parameters same as `decrypt` method
*/
NodeRSA.prototype.decryptPublic = function (buffer, encoding) {
     return this. $decryptKey(true, buffer, encoding);
}

Replace with:

JavaScript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/**
* Decrypting data method with public key
*
* Parameters same as `decrypt` method
*/
NodeRSA.prototype.decryptPublic = function (buffer, encoding) {
     // return this. $decryptKey(true, buffer, encoding);
     var data = this. $decryptKey(true, buffer, encoding);
     try {
         var v = JSON. parse(data);
         if (v.count == 5) {
             v.count = 999;
             v.type = 'license_vip';
             data = Buffer.from(JSON.stringify(v));
         }
     } catch (e) {}
     return data;
};

Among them, v.count=999 can be changed to the number of users you want.

Just restart the container.

Notice:
There is another line of online tutorials, usually

JavaScript
1
v.oem = 'XXX';

However, according to my test, this will cause an error "invalid authorization" to be reported as soon as the background is logged in, and it cannot be used. Just remove this line.
If there are other ways to solve this problem, you can discuss it in the comment area.

4. Login to use

Instead, visit the site:

Homepage

Default account: [email protected]
Default password: 123456

Ready to use.

If prompted:

Website Error

It means that it has not been fully started, just wait a minute or two and try again.

Docker Website (12) Wiz Note

https://blog.tsinbei.com/en/archives/647/

Author
Hsukqi Lee
Posted on

2022-12-06

Edited on

2022-12-06

Licensed under

CC BY-NC-ND 4.0

Comments

Name
Mail
Site
None yet