This commit is contained in:
邹宗楠
2023-10-18 18:13:58 +08:00
parent 54d0c5381a
commit ea7ed134fe
3 changed files with 10 additions and 4 deletions

View File

@@ -17,7 +17,9 @@ func TestAfsOrder(t *testing.T) {
// 同意/拒绝售后单
func TestAggreOrNotAggreAfs(t *testing.T) {
a.AfterSaleOperate(int32(201), "7165706329204670732", "1", 0)
var token = `{"access_token":"7b2a921d-176e-42e9-ae43-2ff47bc84ad3","expires_in":1697682826,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"633e1be6-6dfb-4c51-9e71-72502a35330e","authority_id":""}`
var a = New("7267745202649957900", "51998fcf-d521-4553-8c0c-fa662c8dbd6e", token)
a.AfterSaleOperate(int32(101), "7291211691059085608", "1", 0)
fmt.Println("11", 8|16|32|1)
}

View File

@@ -114,7 +114,10 @@ func (a *API) AfterSaleOperate(refundType int32, refundId, remark string, storeI
return err
}
paramList.AftersaleId = refundId
paramList.Logistics.ReceiverAddressId = addressId
logistics := &afterSale_operate_request.Logistics{}
logistics.ReceiverAddressId = addressId
paramList.Logistics = logistics
refundListParam = append(refundListParam, paramList)
// 102拒绝退货申请一次审核 112拒绝退货 202拒绝仅退款 reason , evidence 302拒绝换货申请一次审核 312换货转退款
case AfterSaleEmuRefuseToReturnOneApply, AfterSaleEmuRefuseToReturnTwoApply, AfterSaleEmuRefuseOnlyRefundApply, AfterSaleEmuRefundChangeGoodsOneApply, AfterSaleEmuRefundChangeGoodsTwoApply: