This commit is contained in:
邹宗楠
2023-12-27 10:30:13 +08:00
parent cc6a6c3c03
commit e8c5c14981
2 changed files with 19 additions and 2 deletions

View File

@@ -119,6 +119,13 @@ func (c *PurchaseHandler) AgreeOrRefuseRefund(ctx *jxcontext.Context, order *mod
//}
if approveType == partner.AfsApproveTypeRefused { // 拒绝退货
// tiktokShop.AfterSaleEmuRefuseToReturnOneApply
// tiktokShop.AfterSaleEmuRefuseToReturnTwoApply
// tiktokShop.AfterSaleEmuRefuseOnlyRefundApply
// tiktokShop.AfterSaleEmuRefundChangeGoodsOneApply
// tiktokShop.AfterSaleEmuRefundChangeGoodsTwoApply
// tiktokShop.AfterSaleEmuRefundReissueApply
//switch afsOrderDetail.Data.ProcessInfo.AfterSaleInfo.AfterSaleType {
//case :
//
@@ -147,6 +154,16 @@ func (c *PurchaseHandler) AgreeOrRefuseRefund(ctx *jxcontext.Context, order *mod
}
return fmt.Errorf("%s", strings.Join(errList, "--"))
} else if approveType == partner.AfsApproveTypeRefund { // 同意
// tiktokShop.AfterSaleEmuAgreeToReturnOneApply
// tiktokShop.AfterSaleEmuAgreeToReturnTwoApply
// tiktokShop.AfterSaleEmuReturnGoodsToRefundApply
// tiktokShop.AfterSaleEmuAgreeOnlyRefundApply
// tiktokShop.AfterSaleEmuAgreeChangeGoodsOneApply
// tiktokShop.AfterSaleEmuAgreeChangeGoodsTwoApply
// tiktokShop.AfterSaleEmuChangeGoodsToRefundApply
// tiktokShop.AfterSaleEmuAgreePreSaleReturnApply
// tiktokShop.AfterSaleEmuAgreeReissueApply
errList := make([]string, 0, 0)
if err = tiktokApi.AfterSaleOperate(tiktokShop.AfterSaleEmuAgreeToReturnOneApply, order.AfsOrderID, reason, utils.Str2Int64(order.VendorStoreID)); err != nil {
errList = append(errList, err.Error())