1
This commit is contained in:
@@ -20,10 +20,10 @@ func init() {
|
|||||||
baseapi.Init(sugarLogger)
|
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
|
// api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_ovSLnyKTsMNx0RxMzJ1C7w") //token_n4TwqCntWWuvQwAawzxC0w
|
||||||
@@ -50,6 +50,10 @@ func TestGetOAuthCode(t *testing.T) {
|
|||||||
t.Log(utils.Format4Output(result, false))
|
t.Log(utils.Format4Output(result, false))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestPreparationMealComplete(t *testing.T) {
|
||||||
|
api.PreparationMealComplete(1100657633926494664)
|
||||||
|
}
|
||||||
|
|
||||||
func TestGetAccessToken(t *testing.T) {
|
func TestGetAccessToken(t *testing.T) {
|
||||||
result, err := api.GetAccessToken("code_ra0oUBjsRwRf0f5m0wJB9g")
|
result, err := api.GetAccessToken("code_ra0oUBjsRwRf0f5m0wJB9g")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -238,7 +238,7 @@ func (a *API) GetTransactionOrderList(req *request591.AlibabaWdkOrderListRequest
|
|||||||
|
|
||||||
// QueryBillList 获取账单信息
|
// QueryBillList 获取账单信息
|
||||||
func (a *API) QueryBillList(req *request591.AlibabaWdkBillListRequest) (*domain591.AlibabaWdkBillListTxdBillListGetResult, error) {
|
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)
|
client := ability591.NewAbility591(&a.client)
|
||||||
|
|
||||||
data, _ := client.AlibabaWdkBillList(req, a.token)
|
data, _ := client.AlibabaWdkBillList(req, a.token)
|
||||||
@@ -251,6 +251,6 @@ func (a *API) QueryBillList(req *request591.AlibabaWdkBillListRequest) (*domain5
|
|||||||
for _, v := range *kk.TxdBillDetailBOS {
|
for _, v := range *kk.TxdBillDetailBOS {
|
||||||
globals.SugarLogger.Debugf("kk := %s -- %s == %s", utils.Format4Output(v.BizOrderId, false), *v.OrderType, *v.ReceivableAmount)
|
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
|
return data.ApiResult.Model, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ func TestName(t *testing.T) {
|
|||||||
}
|
}
|
||||||
func TestGetOrderDetail(t *testing.T) {
|
func TestGetOrderDetail(t *testing.T) {
|
||||||
requestParam := &request591.AlibabaAelophyOrderGetRequest{OrderGetRequest: &domain591.AlibabaAelophyOrderGetOrderGetRequest{
|
requestParam := &request591.AlibabaAelophyOrderGetRequest{OrderGetRequest: &domain591.AlibabaAelophyOrderGetOrderGetRequest{
|
||||||
StoreId: utils.String2Pointer("JX102751"),
|
StoreId: utils.String2Pointer("JX666708"),
|
||||||
BizOrderId: utils.Int64ToPointer(5000908068888360754),
|
BizOrderId: utils.Int64ToPointer(5000910858776180489),
|
||||||
}}
|
}}
|
||||||
data, err := apiTao.QueryOrderDetail(requestParam)
|
data, err := apiTao.QueryOrderDetail(requestParam)
|
||||||
globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data, false))
|
globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data, false))
|
||||||
|
|||||||
Reference in New Issue
Block a user