diff --git a/main/java/shkd/repc/recon/formplugin/ReconPayreqFormPlugin.java b/main/java/shkd/repc/recon/formplugin/ReconPayreqFormPlugin.java index 71783d4..71cd138 100644 --- a/main/java/shkd/repc/recon/formplugin/ReconPayreqFormPlugin.java +++ b/main/java/shkd/repc/recon/formplugin/ReconPayreqFormPlugin.java @@ -726,11 +726,11 @@ public class ReconPayreqFormPlugin extends AbstractFormPlugin implements BeforeF String password = System.getProperty("oaFPPassword"); String loginName = "test";//测试使用test用户 //正式环境使用 -// Long userId = UserServiceHelper.getCurrentUserId(); -// DynamicObject bos_user = BusinessDataServiceHelper.loadSingle(userId, "bos_user"); -// if (bos_user != null){ -// loginName = bos_user.getString("number"); -// } + Long userId = UserServiceHelper.getCurrentUserId(); + DynamicObject bos_user = BusinessDataServiceHelper.loadSingle(userId, "bos_user"); + if (bos_user != null){ + loginName = bos_user.getString("number"); + } String oaUrl = System.getProperty("oaurl"); logger.info("密钥接口:mc获取的oaUrl:\n{}", oaUrl); String linkUrl =oaUrl+ "/seeyon/rest/token";