Skip to content

Commit

Permalink
iPhone13系列
Browse files Browse the repository at this point in the history
  • Loading branch information
hteen committed Sep 19, 2021
1 parent d343a8e commit 1df9e77
Show file tree
Hide file tree
Showing 20 changed files with 637 additions and 519 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
fyne-cross
.idea
*.ttf
.idea
Binary file modified Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Apple Store 预约助手
起因是想购买iPhone12Pro,又懒得一直守着官网,然后顺便学习 GUI框架 [fyne](https://github.com/fyne-io/fyne)

## iPhone13系列
重构, 升级 [fyne](https://github.com/fyne-io/fyne) 至 2.0, 写起来的确比 1.0 舒服得多

#### 注意
* 截止今日(2021-09-19)还无法预约, 所以13系列未做实际测试
* 库存接口已经有了(如果后面Apple不改的话)
* 目前仅有中国大陆, 澳门暂时没库存接口(后面有了再更新)
* 库存查询间隔由 1秒 调整为 500毫秒

- - -

## 正常预约步骤
1. 进入商品预购页面
Expand All @@ -22,7 +32,7 @@

### 运行
```shell script
go run *.go
go run main.go
```

### 打包
Expand Down
10 changes: 0 additions & 10 deletions bundle.go

This file was deleted.

3 changes: 3 additions & 0 deletions common/const.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package common

const VERSION = "1.3.0"
42 changes: 35 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,42 @@
module ip12
module apple-store-helper

go 1.15
go 1.17

require (
fyne.io/fyne v1.4.0
github.com/elazarl/goproxy v0.0.0-20201021153353-00ad82a08272 // indirect
github.com/fyne-io/fyne-cross v0.9.0 // indirect
fyne.io/fyne/v2 v2.1.0
github.com/golang-module/carbon v1.5.4
github.com/parnurzeal/gorequest v0.2.16
github.com/thoas/go-funk v0.9.1
github.com/tidwall/gjson v1.9.1
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/elazarl/goproxy v0.0.0-20210801061803-8e322dfb79c4 // indirect
github.com/fredbi/uri v0.0.0-20181227131451-3dcfdacbaaf3 // indirect
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/go-gl/gl v0.0.0-20210813123233-e4099ee2221f // indirect
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20210410170116-ea3d685f79fb // indirect
github.com/gobuffalo/envy v1.9.0 // indirect
github.com/gobuffalo/packd v1.0.0 // indirect
github.com/gobuffalo/packr v1.30.1 // indirect
github.com/godbus/dbus/v5 v5.0.4 // indirect
github.com/goki/freetype v0.0.0-20181231101311-fa8a33aabaff // indirect
github.com/joho/godotenv v1.3.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rogpeppe/go-internal v1.8.0 // indirect
github.com/smartystreets/goconvey v1.6.4 // indirect
github.com/tidwall/gjson v1.6.3
github.com/tidwall/match v1.0.2 // indirect
github.com/srwiley/oksvg v0.0.0-20200311192757-870daf9aa564 // indirect
github.com/srwiley/rasterx v0.0.0-20200120212402-85cb7272f5e9 // indirect
github.com/stretchr/testify v1.7.0 // indirect
github.com/tidwall/match v1.0.3 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/yuin/goldmark v1.3.8 // indirect
golang.org/x/image v0.0.0-20200430140353-33d19683fad8 // indirect
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect
golang.org/x/text v0.3.3 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
moul.io/http2curl v1.0.0 // indirect
)
162 changes: 105 additions & 57 deletions go.sum

Large diffs are not rendered by default.

Binary file modified images/0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 1df9e77

Please sign in to comment.