This commit is contained in:
邹宗楠
2023-07-31 16:52:31 +08:00
parent d856a1ffdc
commit 74e5825b73
3 changed files with 10 additions and 6 deletions

View File

@@ -20,10 +20,10 @@ func init() {
baseapi.Init(sugarLogger)
// 菜市
//api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
// 果园
api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
//商超
// api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_ovSLnyKTsMNx0RxMzJ1C7w") //token_n4TwqCntWWuvQwAawzxC0w
@@ -50,6 +50,10 @@ func TestGetOAuthCode(t *testing.T) {
t.Log(utils.Format4Output(result, false))
}
func TestPreparationMealComplete(t *testing.T) {
api.PreparationMealComplete(1100657633926494664)
}
func TestGetAccessToken(t *testing.T) {
result, err := api.GetAccessToken("code_ra0oUBjsRwRf0f5m0wJB9g")
if err != nil {

View File

@@ -238,7 +238,7 @@ func (a *API) GetTransactionOrderList(req *request591.AlibabaWdkOrderListRequest
// QueryBillList 获取账单信息
func (a *API) QueryBillList(req *request591.AlibabaWdkBillListRequest) (*domain591.AlibabaWdkBillListTxdBillListGetResult, error) {
//globals.SugarLogger.Debugf("进入 QueryBillList")
globals.SugarLogger.Debugf("进入 QueryBillList : %s", utils.Format4Output(req, false))
client := ability591.NewAbility591(&a.client)
data, _ := client.AlibabaWdkBillList(req, a.token)
@@ -251,6 +251,6 @@ func (a *API) QueryBillList(req *request591.AlibabaWdkBillListRequest) (*domain5
for _, v := range *kk.TxdBillDetailBOS {
globals.SugarLogger.Debugf("kk := %s -- %s == %s", utils.Format4Output(v.BizOrderId, false), *v.OrderType, *v.ReceivableAmount)
}
globals.SugarLogger.Debugf("进入 data.ApiResult.Model : %s", utils.Format4Output(data.ApiResult.Model, false))
return data.ApiResult.Model, nil
}

View File

@@ -22,8 +22,8 @@ func TestName(t *testing.T) {
}
func TestGetOrderDetail(t *testing.T) {
requestParam := &request591.AlibabaAelophyOrderGetRequest{OrderGetRequest: &domain591.AlibabaAelophyOrderGetOrderGetRequest{
StoreId: utils.String2Pointer("JX102751"),
BizOrderId: utils.Int64ToPointer(5000908068888360754),
StoreId: utils.String2Pointer("JX666708"),
BizOrderId: utils.Int64ToPointer(5000910858776180489),
}}
data, err := apiTao.QueryOrderDetail(requestParam)
globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data, false))