Skip to content

Commit

Permalink
init project
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxg committed Sep 14, 2021
0 parents commit 653eb6c
Show file tree
Hide file tree
Showing 73 changed files with 3,586 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
164 changes: 164 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
### Eclipse template
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# PyDev specific (Python IDE for Eclipse)
*.pydevproject

# CDT-specific (C/C++ Development Tooling)
.cproject

# CDT- autotools
.autotools

# Java annotation processor (APT)
.factorypath

# PDT-specific (PHP Development Tools)
.buildpath

# sbteclipse plugin
.target

# Tern plugin
.tern-project

# TeXlipse plugin
.texlipse

# STS (Spring Tool Suite)
.springBeans

# Code Recommenders
.recommenders/

# Annotation Processing
.apt_generated/
.apt_generated_test/

# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
.worksheet

# Uncomment this line if you wish to ignore the project description file.
# Typically, this file would be tracked if it contains build/dependency configurations:
#.project

### Java template
# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

target
.idea

env.properties
37 changes: 37 additions & 0 deletions INSTALL1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 安装说明

## 前置要求

部署好[青龙面板](https://github.com/whyour/qinglong)

## 安装

1. 下载仓库中的`docker-compose.yml`至本地,或是复制文件内容后在本地自行建立并粘贴内容
2. 根据模板创建配置文件
3. 使用docker-compose启动
4. 打开浏览器使用

```bash
# 下载docker-compose.yml文件
wget https://raw.githubusercontent.com/rubyangxg/jd-qinglong/master/docker-compose.yml
# 下载配置文件模板
wget https://raw.githubusercontent.com/rubyangxg/jd-qinglong/master/env.template.properties
# 根据注释修改配置文件内容
cp env.template.properties env.properties
# 启动 -d表示后台静默启动
sudo docker-compose --env-file env.properties up -d
# 查看日志
sudo docker-compose --env-file env.properties logs -f
```

默认情况下jd-qinglong将会在`5701`端口启动,并将端口映射至容器所在宿主机,启动之后打开浏览器访问宿主机的5701端口即可(例如http://192.168.100.123:5701)。

## 更新

请直接pull最新的docker镜像即可

```bash
sudo docker-compose --env-file env.properties down
sudo docker pull rubyangxg/jd-qinglong:latest
sudo docker-compose --env-file env.properties up -d
```
73 changes: 73 additions & 0 deletions INSTALL2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# 安装说明

## 前置要求

需要安装`docker-ce``docker-compose`
点击以下连接了解如何安装`docker``compose`

- [Debian](https://docs.docker.com/engine/install/debian/)
- [Ubuntu](https://docs.docker.com/engine/install/ubuntu/)
- [CentOS](https://docs.docker.com/engine/install/centos/)
- [Fedora](https://docs.docker.com/engine/install/fedora/)
- [Red Hat Enterprise Linux](https://docs.docker.com/engine/install/rhel/)
- [SUSE Linux Enterprise Server](https://docs.docker.com/engine/install/sles/)

## 安装

1. 新建一个文件夹,用于存放相关数据
2. 下载仓库中的`docker-compose-allinone.yml`至本地,或是复制文件内容后在本地自行建立并粘贴内容
3. 使用docker-compose启动
4. 打开浏览器使用

```bash
# 新建数据文件夹
mkdir jd-qinglong
cd jd-qinglong
# 下载docker-compose.yml文件
wget -O docker-compose.yml https://raw.githubusercontent.com/rubyangxg/jd-qinglong/master/docker-compose-allinone.yml
# 下载配置文件模板
wget -O env.properties https://raw.githubusercontent.com/rubyangxg/jd-qinglong/master/env.template.properties
# 启动 -d表示后台静默启动
# 使用从0搭建的,不需要修改env.properties中的青龙配置
sudo docker-compose --env-file env.properties up -d
# 查看日志
sudo docker-compose --env-file env.properties logs -f
```
青龙面板默认端口5700
启动完毕后,会自动获取青龙的登录密码,密码查看命令:
```bash
cat data/config/auth.json
```

cat查看之后返回的结果类似如下字段

```json
{"username":"admin","password":"Xb-ZYP526wmg4_h6q1WqIO"}
```

输入此处记录的`username``password`,即可成功登陆qinglong面板,登陆后即可正常使用

## 备份

所有数据都将保存在`docker-compose.yml`所在的同级目录的`data`文件夹中,如需要备份,请直接备份`docker-compose.yml``data`文件夹即可

```bash
root@debian:/opt/qinglong# ls -lah
总用量 8.0K
drwxr-xr-x 3 root root 4.0K 8月 30 01:29 .
drwxr-xr-x 4 root root 4.0K 8月 30 00:51 ..
drwxr-xr-x 8 root root 4.0K 8月 30 01:30 data
-rw-r--r-- 1 root root 386 8月 30 01:29 docker-compose.yml
```

## 更新

请直接pull最新的docker镜像即可

```bash
cd jd-qinglong
sudo docker-compose --env-file env.properties down
sudo docker pull rubyangxg/jd-qinglong:latest
sudo docker-compose --env-file env.properties up -d
```

44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<p align="center">
用于替代Ninja【代码仅供参考学习,禁止商用和非法用途,否则,一切后果请用户自负。】
</p>

<div align="center">

[![docker version][docker-version-image]][docker-version-url] [![docker pulls][docker-pulls-image]][docker-pulls-url] [![docker stars][docker-stars-image]][docker-stars-url] [![docker image size][docker-image-size-image]][docker-image-size-url]

[docker-pulls-image]: https://img.shields.io/docker/pulls/rubyangxg/jd-qinglong?style=flat
[docker-pulls-url]: https://hub.docker.com/r/rubyangxg/jd-qinglong
[docker-version-image]: https://img.shields.io/docker/v/rubyangxg/jd-qinglong?style=flat
[docker-version-url]: https://hub.docker.com/r/rubyangxg/jd-qinglong/tags?page=1&ordering=last_updated
[docker-stars-image]: https://img.shields.io/docker/stars/rubyangxg/jd-qinglong?style=flat
[docker-stars-url]: https://hub.docker.com/r/rubyangxg/jd-qinglong
[docker-image-size-image]: https://img.shields.io/docker/image-size/rubyangxg/jd-qinglong?style=flat
[docker-image-size-url]: https://hub.docker.com/r/rubyangxg/jd-qinglong
</div>

<p align="center">
<img width="49%" src="/public/images/home.png">
</p>

## 如何安装
* [源码地址](https://github.com/rubyangxg/jd-qinglong)
* 已经安装好青龙的: [INSTALL1.md](INSTALL1.md)
* 从0搭建: [INSTALL2.md](INSTALL2.md)
* 免费代挂及问题反馈移步: [TG交流群](https://t.me/joinchat/3JfrwNPoHFY2MGNl)

## 多谢

* [青龙面板](https://github.com/whyour/qinglong)

* [docker-selenium](https://github.com/SeleniumHQ/docker-selenium)
## 常见问题
1. _Q: 为什么不能扫码登录?_
**A: 扫码登录的ck有效期太短,已被阿东封禁,手机网页登录有效期1个月,目前没发现更好地方式**
2. _Q: 这是什么原理?_
**A: 模拟一个后台的浏览器进行登录操作,想窥探究竟的自行阅读代码或者登录页链接加?debug=1(彩蛋)**
3. _Q: 页面上的可用资源数是什么意思?_
**A: 由于每一个人的登录都要打开一个浏览器,比较消耗资源和内存,所以要限制打开浏览器的个数**
4. _Q: 为什么还有操作限时?_
**A:如果长时间占用浏览器,不关闭,会导致浏览器资源迅速掏空,其他人就不能用了,所以操作时限3分钟强制释放占用的浏览器或者获取ck后强制释放**
5. _Q: 提示对不起,当前浏览器sessionId过期怎么办?_
**A:隔几秒多刷几次就可以了,因为浏览器资源释放和创建需要时间**
Loading

0 comments on commit 653eb6c

Please sign in to comment.