Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Timssse committed Sep 9, 2022
1 parent ce5c749 commit f2c50f8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 42 deletions.
45 changes: 7 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,11 @@
# Apple Store 预约助手

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

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

- - -

## 正常预约步骤
1. 进入商品预购页面
2. 选择具体型号和门店
3. 要求输入注册码
4. 选择到店时间,填写身份证号
5. 完成
## 更新 iPhone14 系列

## 重要提示
* *这不是外挂,不能全自动一劳永逸*
* *助手可以直接进入预约步骤3,快人2步,后续步骤需要自己手动操作*
* *提前登录*
* *提前获取注册码,30min内可以复用,获取方式是找个冷门型号走到获取注册码步骤*
* *经过测试12各系列的注册码不能通用*
* *提前将需要购买的型号加入购物车,检测有货会打开购物车页面,需要在购物车页面手动选择门店*


## 关于开发
Expand All @@ -37,35 +19,22 @@ go run main.go

### 打包
```
# macos打包
go get fyne.io/fyne/cmd/fyne
fyne package -os darwin
# macos下打包其他平台
go get github.com/fyne-io/fyne-cross
fyne-cross windows
fyne-cross darwin -arch=amd64,arm64
fyne-cross darwin -arch=amd64,arm64 -app-id=apple-store-helper
```

## 使用方法

1. 前往 `release` 页面下载,启动
2. 首次运行点击 `测试` 按钮, 确保能正确打开浏览器

1. 前往 `release` 页面下载,启动
2. 提前将需要购买的型号加入购物车,检测有货会打开购物车页面,需要在购物车页面手动选择门店
3. 选择门店和型号,点击 `添加` 到监控列表
4. 点击 `开始` 即可

匹配到之后会暂停监听,直到再次点击 `开始`

## 参考图片

效果预览
![效果预览](./images/0.png)

注册码获取页面
![注册码获取页面](./images/1.png)

选择到店时间,填写身份证号
![选择到店时间,填写身份证号](./images/2.png)

## 一杯卡布奇诺 ☕️

<img src='https://tva1.sinaimg.cn/large/0081Kckwly1gls6d2nnicj30i00pcq9i.jpg' width='200px'/>
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ require (
golang.org/x/image v0.0.0-20200430140353-33d19683fad8 // indirect
golang.org/x/mobile v0.0.0-20190415191353-3e0bab5405d6 // indirect
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect
golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9 // indirect
golang.org/x/text v0.3.3 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
moul.io/http2curl v1.0.0 // indirect
Expand Down
3 changes: 2 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c h1:F1jZWGFhYfh0Ci55sIpILtKKK8p3i2/krTr0H1rg74I=
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9 h1:nhht2DYV/Sn3qOayu8lM+cU1ii9sTLUeBQwQQfUHtrs=
golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k=
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ func main() {
SampleRate := beep.SampleRate(44100)
speaker.Init(SampleRate, SampleRate.N(time.Second/10))

view.App = app.NewWithID("ip13")
view.App = app.NewWithID("apple-store-helper")
view.App.Settings().SetTheme(&theme.MyTheme{})
view.Window = view.App.NewWindow("iPhone13|Mini|Pro|ProMax")
view.Window = view.App.NewWindow("Apple Store Helper")

defaultArea := services.Listen.Area.Title

Expand Down

0 comments on commit f2c50f8

Please sign in to comment.