This commit is contained in:
邹宗楠
2026-08-03 13:45:08 +08:00
parent 8c882f8a08
commit 5fd9328f79
2 changed files with 49 additions and 5 deletions

View File

@@ -373,12 +373,10 @@ func (c *PurchaseHandler) GetAfsStatusFromVendorStatus(resType int, notifyType s
// 审核售后单申请
func (c *PurchaseHandler) AgreeOrRefuseRefund(ctx *jxcontext.Context, order *model.AfsOrder, approveType int, reason string, review map[string]interface{}) (err error) {
if globals.EnableMtwmStoreWrite {
globals.SugarLogger.Debugf("-----AgreeOrRefuseRefund review:= %s", utils.Format4Output(review, false))
var param *mtwmapi.ReviewAfterSalesInfo
if err = utils.Map2StructByJson(review, &param, false); err != nil {
return err
}
globals.SugarLogger.Debugf("-----AgreeOrRefuseRefund:= %s", utils.Format4Output(param, false))
err = getAPI(order.VendorOrgCode, jxutils.GetSaleStoreIDFromAfsOrder(order), order.VendorStoreID).ReviewAfterSales(param)
//if approveType == partner.AfsApproveTypeRefused {
// err = getAPI(order.VendorOrgCode, jxutils.GetSaleStoreIDFromAfsOrder(order), order.VendorStoreID).OrderRefundReject(utils.Str2Int64(order.VendorOrderID), reason)