1
This commit is contained in:
@@ -285,6 +285,9 @@ func (a *API) AccessAPINoPage2(apiStr string, jdParams map[string]interface{}, k
|
|||||||
if jsonResult["code"].(string) != "0" {
|
if jsonResult["code"].(string) != "0" {
|
||||||
return nil, errors.New(jsonResult["msg"].(string))
|
return nil, errors.New(jsonResult["msg"].(string))
|
||||||
}
|
}
|
||||||
|
if jsonResult["data"] == nil || utils.IsNil(jsonResult["data"]) {
|
||||||
|
return nil, errors.New("data is nil")
|
||||||
|
}
|
||||||
globals.SugarLogger.Debugf("====AccessAPINoPage2============%s", utils.Format4Output(jsonResult, false))
|
globals.SugarLogger.Debugf("====AccessAPINoPage2============%s", utils.Format4Output(jsonResult, false))
|
||||||
var data map[string]interface{}
|
var data map[string]interface{}
|
||||||
if err := utils.UnmarshalUseNumber([]byte(jsonResult["data"].(string)), &data); err != nil {
|
if err := utils.UnmarshalUseNumber([]byte(jsonResult["data"].(string)), &data); err != nil {
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ package tiktok_api
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -20,7 +22,9 @@ func TestAggreOrNotAggreAfs(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestGetSkuDetailLocalID(t *testing.T) {
|
func TestGetSkuDetailLocalID(t *testing.T) {
|
||||||
a.GetSkuDetailLocalID("", "609483111")
|
data, err := a.GetSkuDetailLocalID("", "30644")
|
||||||
|
globals.SugarLogger.Debugf("data=%s", utils.Format4Output(data, false))
|
||||||
|
globals.SugarLogger.Debugf("data=%s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -157,16 +157,16 @@ const (
|
|||||||
// 501 7 6,27 同意补寄
|
// 501 7 6,27 同意补寄
|
||||||
// 502 7 6 拒绝补寄
|
// 502 7 6 拒绝补寄
|
||||||
const (
|
const (
|
||||||
AfterSaleEmuAgreeToReturnOneApply = 101 // 同意退货申请(一次审核) Logistics.ReceiverAddressId 或 Logistics.AfterSaleAddressDetail
|
AfterSaleEmuAgreeToReturnOneApply = 101 // 同意退货申请(一次审核)不接 Logistics.ReceiverAddressId 或 Logistics.AfterSaleAddressDetail
|
||||||
AfterSaleEmuRefuseToReturnOneApply = 102 // 拒绝退货申请(一次审核) reason , evidence
|
AfterSaleEmuRefuseToReturnOneApply = 102 // 拒绝退货申请(一次审核) reason , evidence
|
||||||
AfterSaleEmuAgreeToReturnTwoApply = 111 // 同意退货(二次审核)
|
AfterSaleEmuAgreeToReturnTwoApply = 111 // 同意退货(二次审核) 不接
|
||||||
AfterSaleEmuRefuseToReturnTwoApply = 112 // 拒绝退货 (二次审核) reason , evidence
|
AfterSaleEmuRefuseToReturnTwoApply = 112 // 拒绝退货 (二次审核) reason , evidence
|
||||||
AfterSaleEmuReturnGoodsToRefundApply = 121 // 退货转退款
|
AfterSaleEmuReturnGoodsToRefundApply = 121 // 退货转退款
|
||||||
AfterSaleEmuAgreeOnlyRefundApply = 201 // 同意仅退款
|
AfterSaleEmuAgreeOnlyRefundApply = 201 // 同意仅退款
|
||||||
AfterSaleEmuRefuseOnlyRefundApply = 202 // 拒绝仅退款 reason , evidence
|
AfterSaleEmuRefuseOnlyRefundApply = 202 // 拒绝仅退款 reason , evidence
|
||||||
AfterSaleEmuRefundAfterRefusalApply = 203 // 同意拒签后退款
|
AfterSaleEmuRefundAfterRefusalApply = 203 // 同意拒签后退款 不接
|
||||||
AfterSaleEmuAgreeChangeGoodsOneApply = 301 // 同意换货申请(一次审核) Logistics.ReceiverAddressId 或 Logistics.AfterSaleAddressDetail
|
AfterSaleEmuAgreeChangeGoodsOneApply = 301 // 同意换货申请(一次审核) 不接 Logistics.ReceiverAddressId 或 Logistics.AfterSaleAddressDetail
|
||||||
AfterSaleEmuRefundChangeGoodsOneApply = 302 // 拒绝换货申请(一次审核) reason,evidence
|
AfterSaleEmuRefundChangeGoodsOneApply = 302 // 拒绝换货申请(一次审核) reason,evidence
|
||||||
AfterSaleEmuAgreeChangeGoodsTwoApply = 311 // 同意换货(二次审核) logistics.companyCode,logistics.logisticsCode
|
AfterSaleEmuAgreeChangeGoodsTwoApply = 311 // 同意换货(二次审核) logistics.companyCode,logistics.logisticsCode
|
||||||
AfterSaleEmuRefundChangeGoodsTwoApply = 312 // 拒绝换货(二次审核) reason,evidence
|
AfterSaleEmuRefundChangeGoodsTwoApply = 312 // 拒绝换货(二次审核) reason,evidence
|
||||||
AfterSaleEmuChangeGoodsToRefundApply = 321 // 换货转退款
|
AfterSaleEmuChangeGoodsToRefundApply = 321 // 换货转退款
|
||||||
|
|||||||
Reference in New Issue
Block a user