zishu's blog

zishu's blog

一个热爱生活的博主。https://zishu.me

Using the Qinglong panel to hang up Jingdou in the Baota.

As the title suggests, I want to run some services on idle servers. There are many open-source scripts available for hanging JD Beans with Qinglong Panel, and their security has been verified by many people, so they can be used with confidence.

Therefore, I have also arranged a script. After successful deployment, I am writing this note, which is not a tutorial, to record the entire process.

Github: https://github.com/6dylan6/jdpro
The author will update some deployment instructions. If the installation is not successful, you can refer to the instructions in the document.

Pull the image#

I run the service in Baota, which is also very simple and convenient. As for how to install Baota, I will not introduce it here. I have written a tutorial on deploying Baota Panel before, you can click on the internal search.

How to install Baota Panel?

If you need to buy a server, you can click the link to buy a server with a discount on Tencent Cloud~ Isn't it great to save a dozen or twenty yuan without hiring a white one?


First, download and install a Docker Manager in the software store, and then click Settings > Image Management > Image Acquisition.

Then enter qinglong to search, select the first link and pull it.

image

Create a container#

Click on Create Container.

Choose the image that was just pulled, fill in 5700 for both the container port and the server port in the port mapping, select automatic startup, and leave the rest blank. Click Submit.

Open port 5700 of the server's firewall.

image

Deploy the script#

Enter ip:5700 in the browser, where the IP address is your server's IP. A Qinglong Panel initialization configuration will pop up. Follow the prompts to install it. It's not particularly complicated.

It's all about setting up usernames, passwords, notifications, etc. I chose email notifications.

After the installation is complete, click on New Task in the upper right corner of the homepage, and simply copy the contents inside.

  • Fill in any name.
  • Fill in the command

ql repo https://js.dayplus.xyz/https://github.com/6dylan6/jdpro.git "jd_|jx_|jddj_" "backUp" "^jd[^_]|USER|JD|function|sendNotify"

  • Fill in the scheduling rule

0 0 0 * * *

Click OK.

image

After completion, don't click on anything for now.

Environment Variables#

Next, go to the Environment Variables in the left navigation panel of the panel, click on New Variable, and here you will need the cookie value of your JD account. Open m.jd.com in your browser, log in to your account, and switch to mobile mode.

Then find network on the right side, click on search for js files, find the file with the prefix biz.json?....., and the right side will display a cookie.

Find the pt_key and pt_pin in it, they are very long, so pay attention. Copy them together into the value of the new variable, enter JD_COOKIE for the name above, and finally click OK.

image

Run#

Finally, go back to the scheduled task, go to the last page of the pagination, find the script at the beginning, click on Allow, and it will keep spinning in the running state. When it finishes running, disable it, and it will always run on schedule in the future.

image

Finally, for safety reasons, disable all tasks in the previous script that contain the word encryption.

That's it. You can run about 100-200 beans a day, although it's not much, it's quite substantial over time. You can use them to offset the cost of buying things, which is satisfying.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.