zishu's blog

zishu's blog

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

Using Qinglong Panel to hang Jingdou in 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 in the Qinglong panel, and their security has been verified by many people, so you can use them 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 unsuccessful, 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 won't introduce it here. I have written a tutorial on deploying the 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 spending money?


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 auto-start on boot, and leave the rest blank. Click submit.

Open port 5700 in 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 the username, password, and notification method. I chose email notification.

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 anything for now.

Environment variables#

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

Then, on the right side, find network and click on it to search for the JS file. Find the file with the prefix biz.json?....., and on the right side, a cookie will be displayed.

Find the pt_key and pt_pin in it, they are quite long, so pay attention. Copy them together and paste them 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 tasks. On the last page of the pagination, find the script at the beginning, click on "Allow", and it will keep running in a circle. After it finishes running, disable it. It will always run on schedule in the future.

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.