فهرست منبع

chore: 剩余改动push

alphaH 21 ساعت پیش
والد
کامیت
b8e8c3e9cc

+ 4 - 1
frontend/src/views/module_payment/enterprise/components/EnterpriseForm.vue

@@ -470,10 +470,13 @@ async function submitForm() {
         loadingText: "正在申请入驻...",
         action: () => EnterpriseAPI.applyInvite(submitData),
       });
+      console.log("[applyInvite] res:", JSON.stringify(res?.data));
       if (res?.data.data?.pc_invite_url) {
-        // ElMessage.success("");
         window.open(res.data.data.pc_invite_url, "_blank");
         emit("success");
+      } else {
+        console.warn("[applyInvite] pc_invite_url 为空", res?.data);
+        ElMessage.warning("未获取到邀约链接,请稍后重试");
       }
     } else if (props.type === "update" && props.enterpriseId) {
       await loadingExecute({

+ 2 - 1
java/src/main/java/com/payment/platform/module/payment/enterprise/service/AlipayEnterpriseService.java

@@ -1,5 +1,6 @@
 package com.payment.platform.module.payment.enterprise.service;
 
+import com.alibaba.fastjson.JSONObject;
 import com.alipay.api.AlipayApiException;
 import com.alipay.api.domain.*;
 import com.alipay.api.request.*;
@@ -44,7 +45,7 @@ public class AlipayEnterpriseService {
                     alipayClientFactory.getClientByProvider(Long.valueOf(data.get("service_provider_id").toString())).execute(request);
 
             if (!response.isSuccess()) {
-                log.error("支付宝邀请码申请失败: {} - {}", response.getCode(), response.getMsg());
+                log.error("支付宝邀请码申请失败: {}", JSONObject.toJSONString(response));
                 throw new BusinessException(400, "申请邀请码失败: " + response.getMsg());
             }
 

+ 1 - 1
java/src/main/java/com/payment/platform/module/payment/notification/handler/EnterpriseHandler.java

@@ -139,7 +139,7 @@ public class EnterpriseHandler extends BaseNotifyHandler {
                 log.warn("同步企业详情失败,标记重试: enterprise_id={}, error={}", enterpriseId, e.getMessage());
                 entity.setNameSyncStatus("0");
                 entity.setNameSyncRetryCount(0);
-                entity.setNameSyncNextTime(OffsetDateTime.now().plusMinutes(10));
+                entity.setNameSyncNextTime(OffsetDateTime.now().plusMinutes(1));
                 enterpriseMapper.updateIgnoreTenant(entity);
             }
         }