【类 型】:fix

【主	题】:退款接口 拦截已完成的订单
【描	述】:
	[原因]:已完成订单 后端拦截 申请退款请求
	[过程]:
	[影响]:
【结	束】

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
tk 2024-06-28 16:09:59 +08:00
parent bcba3a5811
commit 569de70d7e

View File

@ -81,6 +81,10 @@ class PayController extends PublicController
echo json_encode(array('status' => 1, 'msg' => '此订单已完成退款'));
exit();
}
if ($order['main_status'] == "已完成")
echo json_encode(array('status' => 1, 'msg' => '已完成订单不可申请退款'));
exit();
}
// 设置退款参数