Skip to content

Commit

Permalink
钉钉应用内购
Browse files Browse the repository at this point in the history
  • Loading branch information
mengfengkong committed Jul 10, 2020
1 parent e514305 commit ebbf212
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions sdk/api_order_caller.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ func (client *DingTalkClient) OrderConsume(orderId int64, requestId string, quan

//获取未处理的已支付订单
//doc:https://ding-doc.dingtalk.com/doc#/serverapi3/lg1nb7/2abS0
func (client *DingTalkClient) GetUnfinishOrderList(itemCode string, page int64, size int64) (GetUnfinishOrderListResp, error) {
func (s *DingTalkSDK) GetUnfinishOrderList(suiteAccessToken string, itemCode string, page int64, size int64) (GetUnfinishOrderListResp, error) {
params := map[string]string{
"access_token": client.AccessToken,
"access_token": suiteAccessToken,
"page": strconv.FormatInt(page, 10),
"page_size": strconv.FormatInt(size, 10),
}
Expand Down
8 changes: 0 additions & 8 deletions sdk/api_order_caller_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package sdk

import (
"github.com/polaris-team/dingtalk-sdk-golang/json"
"testing"
)

Expand Down Expand Up @@ -32,10 +31,3 @@ func TestDingTalkClient_OrderConsume(t *testing.T) {
t.Log(err)
t.Log(res)
}

func TestDingTalkClient_GetUnfinishOrderList(t *testing.T) {
client := CreateClient()
res, err := client.GetUnfinishOrderList("", 1, 10)
t.Log(err)
t.Log(json.ToJson(res))
}

0 comments on commit ebbf212

Please sign in to comment.