Skip to content

Commit

Permalink
Fix: 添加购物车成功判定 (#40)
Browse files Browse the repository at this point in the history
* fix: 加入购物车成功判定
* Revert "Update GitHub action  (#37)"

This reverts commit 46d26dd.

Co-authored-by: superq <[email protected]>
  • Loading branch information
xxxXXX95 and meooxx authored Mar 7, 2022
1 parent b40638d commit 2aa8faf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ on:
# Triggers the workflow on push or pull request events but only for the rm branch
release:
types: [published]
# manully trigger the job
push:
branches:
- github-action-test
# manully trigger the job
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: windows-latest
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -40,29 +40,26 @@ jobs:
if: steps.changed-files.outputs.any_changed == 'true'
run: |
cd gocode
set GOARCH=amd64
CGO_ENABLED=0
GOOS=windows
GOARCH=amd64
go build -o yuyue-setup-amd64.exe main.go
- name: Build golang32
if: steps.changed-files.outputs.any_changed == 'true'
run: |
cd gocode
set GOARCH=386
CGO_ENABLED=0
GOOS=windows
GOARCH=386
go build -o yuyue-setup-amd32.exe main.go
- name: Upload Release Asset
if: steps.changed-files.outputs.any_changed == 'true'
id: upload-release-asset
uses: softprops/action-gh-release@v1
with:
tag_name: test
files: |
gocode\yuyue-setup-amd64.exe
gocode\yuyue-setup-amd32.exe
message:
needs: [build]
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
gocode/yuyue-setup-amd64.exe
gocode/yuyue-setup-amd32.exe
- name: Telegram sender
# You may pin to the exact commit or the version.
# uses: robotomize/notify-telegram@f2821d117115d48ccbbde7609d2029603ee55b7e
Expand Down
2 changes: 1 addition & 1 deletion tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ class Tools {
headers
});
if (
// res.url.indexOf('https://cart.jd.com/addToCart.html') !== -1 ||
res.url.indexOf('https://cart.jd.com/addToCart.html') !== -1 ||
res.url.indexOf('https://cart.jd.com/gateResult') !== -1
) {
// const text = await res.text();
Expand Down

0 comments on commit 2aa8faf

Please sign in to comment.