Skip to content

Commit

Permalink
refactor: 更新接口版本
Browse files Browse the repository at this point in the history
  • Loading branch information
allen committed Apr 28, 2022
1 parent dca1a09 commit 4c1060b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ headers: # 请求头 用户可以自定义, 自由增加删除参数
ddmc-api-version: 9.44.0
ddmc-build-version: 2.74.2
ddmc-sdkversion: 2.13.2
ddmc-channel: applet
ddmc-os-version: '[object Undefined]'
ddmc-channel: undefined
ddmc-os-version: undefined
params: # 请求参数 用户可以自定义, 自由增加删除参数
device_token: '' # 填写自己抓包得到的 device_token
bark: # Bark 用户组, 苹果使用 Bark 推送通知, 可以添加多个与你同属一个叮咚发货站点的用户
Expand Down
3 changes: 3 additions & 0 deletions internal/app/test/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,20 @@ func TestAddNewOrder(t *testing.T) {
cartMap, err := service.GetCart()
if err != nil {
t.Error(err)
return
}

reserveTimes := service.MockMultiReserveTime()

orderMap, err := service.CheckOrder(cartMap, reserveTimes)
if err != nil {
t.Error(err)
return
}
err = service.AddNewOrder(cartMap, reserveTimes, orderMap)
if err != nil {
t.Error(err)
return
}
}

Expand Down

0 comments on commit 4c1060b

Please sign in to comment.