Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Update to webvpn mode
Browse files Browse the repository at this point in the history
  • Loading branch information
qhy040404 committed Apr 15, 2022
1 parent d17135b commit 9b57500
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,4 @@ jobs:
uses: qhy040404/BuildMySource@v2
with:
language: python
source: main

- name: test
shell: sh
run: |
cd src
cp "config.conf" "dist/"
cd dist
./main
source: main
11 changes: 6 additions & 5 deletions src/reserve.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,14 @@ def send_email(self, success = False):

def reserve(self):
# define const url
areas_url = 'https://tycg.dlut.edu.cn/diantuo/fieldSale/listApiFieldSaleNew1.do'
place_url = 'https://tycg.dlut.edu.cn/diantuo/fieldSale/listFieldSale.do'
sign_url = 'https://tycg.dlut.edu.cn/diantuo/createSign.do'
addOrder_url = 'https://tycg.dlut.edu.cn/diantuo/addOrder.do?sign='
pay_url = 'https://tycg.dlut.edu.cn/diantuo/pay/yuLanOnLinePay.do'
areas_url = 'https://webvpn.dlut.edu.cn/https/77726476706e69737468656265737421e4ee429b693464456a468ca88d1b203b/diantuo/fieldSale/listApiFieldSaleNew1.do'
place_url = 'https://webvpn.dlut.edu.cn/https/77726476706e69737468656265737421e4ee429b693464456a468ca88d1b203b/diantuo/fieldSale/listFieldSale.do'
sign_url = 'https://webvpn.dlut.edu.cn/https/77726476706e69737468656265737421e4ee429b693464456a468ca88d1b203b/diantuo/createSign.do'
addOrder_url = 'https://webvpn.dlut.edu.cn/https/77726476706e69737468656265737421e4ee429b693464456a468ca88d1b203b/diantuo/addOrder.do?sign='
pay_url = 'https://webvpn.dlut.edu.cn/https/77726476706e69737468656265737421e4ee429b693464456a468ca88d1b203b/diantuo/pay/yuLanOnLinePay.do'

s = sso.login(self.user_id, self.passwd)
s.get('https://webvpn.dlut.edu.cn/https/77726476706e69737468656265737421e4ee429b693464456a468ca88d1b203b/diantuo/pcLogin.do')
fieldSaleId = s.post(areas_url, postdata.constructParaField(), headers={'Accept': 'application/json, text/javascript, */*; q=0.01',
'Content-Type': 'application/json'}).text
fieldSaleId = ProcessData.get_fieldSaleId(fieldSaleId, self.area)
Expand Down

0 comments on commit 9b57500

Please sign in to comment.