Browse Source

fix(auth-service调用app-service接口使用orgId错误修改): auth-service调用app-service接口使用orgId错误修改

auth-service调用app-service接口使用orgId错误修改
mazq 3 năm trước cách đây
mục cha
commit
24cb3add66

+ 2 - 2
dcuc-app-service/src/main/java/com/dragoninfo/dcuc/app/service/impl/ApplyInfoServiceImpl.java

@@ -124,11 +124,11 @@ public class ApplyInfoServiceImpl extends BaseMybatisService<ApplyInfo, String>
         String applyCode = applyInfo.getApplyCode();
         String applyCode = applyInfo.getApplyCode();
         String secretKey = getApiKeys(applyCode);
         String secretKey = getApiKeys(applyCode);
         String apiKey = getApiKeys(applyCode);
         String apiKey = getApiKeys(applyCode);
-
+        OrgInfo orgInfo = orgInfoFacade.getOrgInfoByCode(applyCode);
+        applyInfo.setOrgId(orgInfo.getId());
         applyInfo.setSecretKey(secretKey);
         applyInfo.setSecretKey(secretKey);
         applyInfo.setApiKey(apiKey);
         applyInfo.setApiKey(apiKey);
         applyInfo.setDeleted(BooleanEnum.FALSE.getValue());
         applyInfo.setDeleted(BooleanEnum.FALSE.getValue());
-
         applyInfoMapper.insert(applyInfo);
         applyInfoMapper.insert(applyInfo);
         // 保存 appId
         // 保存 appId
         applyOauthService.saveOauth(applyInfo);
         applyOauthService.saveOauth(applyInfo);