|
|
@@ -603,8 +603,10 @@ class QuotaService:
|
|
|
result.parse_response_content(response)
|
|
|
|
|
|
if not result.is_success():
|
|
|
- log.error(f"支付宝接口调用失败: {result.code} - {result.msg}")
|
|
|
- raise CustomException(msg=f"作废手工发放批次失败: {result.msg}")
|
|
|
+ sub_msg = getattr(result, 'sub_msg', '') or ''
|
|
|
+ err_detail = f"{result.msg}" + (f" - {sub_msg}" if sub_msg else "")
|
|
|
+ log.error(f"支付宝接口调用失败: {result.code} - {err_detail}")
|
|
|
+ raise CustomException(msg=f"作废手工发放批次失败: {sub_msg or result.msg}")
|
|
|
|
|
|
# 更新本地批次记录状态
|
|
|
try:
|