问题描述:
个人中心订单管理退款同意后状态不对
解决办法:
找到文件 app/api/controller/v1/admin/StoreOrderController.php
338-343行改为
} else if ($type == 2) {
$data['refund_status'] = 0;
$data['refund_type'] = 3;
} else {
return app('json')->fail('退款修改状态错误');
}
如下图所示
找到文件:app/kefuapi/controller/Order.php
215-223行改为
if ($type == 1) {
$data['refund_status'] = 2;
$data['refund_type'] = 6;
} else if ($type == 2) {
$data['refund_status'] = 0;
$data['refund_type'] = 3;
} else {
return app('json')->fail('退款修改状态错误');
}
如下图所示
改完记得保存