فهرست منبع

fix: 签约链接支付宝调用失败时使用sub_msg输出更详细错误信息

alphah 1 هفته پیش
والد
کامیت
5bea91d01c
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      backend/app/plugin/module_payment/employee/service.py

+ 2 - 2
backend/app/plugin/module_payment/employee/service.py

@@ -367,8 +367,8 @@ class EmployeeService:
         result.parse_response_content(response)
 
         if not result.is_success():
-            log.error(f"支付宝接口调用失败: {result.code} - {result.msg}")
-            raise CustomException(msg=f"获取员工签约激活链接失败: {result.msg}")
+            log.error(f"支付宝接口调用失败: {result.code} - {result.sub_msg}")
+            raise CustomException(msg=f"获取员工签约激活链接失败: {result.sub_msg}")
 
         return EmployeeInviteQueryOutSchema(
             enterprise_id=result.enterprise_id or data.enterprise_id,