获取售后单已经生成了,生成结果如下
array(6) {
["code"]=>
string(3) "200"
["status"]=>
string(2) "OK"
["responseline"]=>
string(15) "HTTP/1.0 200 OK"
["headers"]=>
array(4) {
["Connection"]=>
string(5) "close"
["MMLAS-VERIFYRESULT"]=>
string(8) "CAAoAQ=="
["Content-Type"]=>
string(31) "application/json; charset=UTF-8"
["Content-Length"]=>
string(3) "553"
}
["content"]=>
string(553) "{"errcode":0,"errmsg":"ok","after_sales_order":{"out_aftersale_id":"1635","aftersale_id":4000000001606099,"out_order_id":"1635","order_id":3302604942247854592,"product_info":{"out_product_id":"398","product_id":0,"out_sku_id":"0","sku_id":0,"product_cnt":1},"type":1,"return_info":{"order_return_time":0,"waybill_id":""},"orderamt":1,"refund_reason_type":1,"refund_reason":"不想要了","media_list":[],"status":1,"create_time":"1649927293667","update_time":"1649928925218","openid":"o9LEY0cPvx7fYYhA53r2pfp9FhOY","refund_pay_detail":{"refund_id":""}}}"
["meta"]=>
string(689) "HTTP/1.0 200 OK
Connection: close
MMLAS-VERIFYRESULT: CAAoAQ==
Content-Type: application/json; charset=UTF-8
Content-Length: 553
{"errcode":0,"errmsg":"ok","after_sales_order":{"out_aftersale_id":"1635","aftersale_id":4000000001606099,"out_order_id":"1635","order_id":3302604942247854592,"product_info":{"out_product_id":"398","product_id":0,"out_sku_id":"0","sku_id":0,"product_cnt":1},"type":1,"return_info":{"order_return_time":0,"waybill_id":""},"orderamt":1,"refund_reason_type":1,"refund_reason":"不想要了","media_list":[],"status":1,"create_time":"1649927293667","update_time":"1649928925218","openid":"o9LEY0cPvx7fYYhA53r2pfp9FhOY","refund_pay_detail":{"refund_id":""}}}"
}
然后调用取消售后接口https://api.weixin.qq.com/shop/ecaftersale/cancel?access_token=xxxxxxxxx
f返回结果是:
array(6) {
["code"]=>
string(3) "200"
["status"]=>
string(2) "OK"
["responseline"]=>
string(15) "HTTP/1.0 200 OK"
["headers"]=>
array(4) {
["Connection"]=>
string(5) "close"
["MMLAS-VERIFYRESULT"]=>
string(8) "CAAoAQ=="
["Content-Type"]=>
string(31) "application/json; charset=UTF-8"
["Content-Length"]=>
string(3) "130"
}
["content"]=>
string(130) "{"errcode":2747008,"errmsg":" 不能执行该操作,请检查当前状态和操作能否对应 rid: 6257f92e-2021d923-0edd811d"}"
["meta"]=>
string(266) "HTTP/1.0 200 OK
Connection: close
MMLAS-VERIFYRESULT: CAAoAQ==
Content-Type: application/json; charset=UTF-8
Content-Length: 130
{"errcode":2747008,"errmsg":" 不能执行该操作,请检查当前状态和操作能否对应 rid: 6257f92e-2021d923-0edd811d"}"
}
不能执行该操作,请检查当前状态和操作能否对应?这是什么意思啊?该如何解决啊?