GPT生成链接修改
This commit is contained in:
parent
c516369647
commit
d552ed0259
Binary file not shown.
@ -27,25 +27,8 @@ public class GPTController {
|
|||||||
public String openRepositoryHome(String repositoryId){
|
public String openRepositoryHome(String repositoryId){
|
||||||
Map<String,Object> map = new HashMap<>();
|
Map<String,Object> map = new HashMap<>();
|
||||||
map.put("repositoryId", repositoryId);
|
map.put("repositoryId", repositoryId);
|
||||||
|
String taskId=getLastPublishTaskIdByModelId(repositoryId);
|
||||||
//获取用户会话ID
|
map.put("taskId", taskId);
|
||||||
PALRepositoryModel plModel = CoeProcessLevelDaoFacotory.createCoeProcessLevel().getInstance(repositoryId);
|
|
||||||
String sid="";
|
|
||||||
if(plModel!=null){
|
|
||||||
String createUser = plModel.getCreateUser();
|
|
||||||
UserModel userModel=SDK.getORGAPI().getUser(createUser);
|
|
||||||
if(userModel.isClosed()==false){
|
|
||||||
sid = new SSOUtil().registerClientSessionNoPassword(userModel.getUID(), "cn", "", LoginConst.DEVICE_PC, null);
|
|
||||||
}else{
|
|
||||||
String modifyUser = plModel.getModifyUser();
|
|
||||||
UserModel modifyUserModel=SDK.getORGAPI().getUser(modifyUser);
|
|
||||||
if(modifyUserModel.isClosed()==false){
|
|
||||||
sid = new SSOUtil().registerClientSessionNoPassword(modifyUserModel.getUID(), "cn", "", LoginConst.DEVICE_PC, null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
String url = SDK.getPortalAPI().getPortalUrl()+"/r/w?cmd=com.actionsoft.apps.coe.pal.publisher_publish_file_open&uuid="+repositoryId+"&sid="+sid+"&taskId="+getLastPublishTaskIdByModelId(repositoryId);
|
|
||||||
map.put("linkUrl",url);
|
|
||||||
return HtmlPageTemplate.merge("com.awspaas.user.apps.gpt_interface", "repositoryHome.html", map);
|
return HtmlPageTemplate.merge("com.awspaas.user.apps.gpt_interface", "repositoryHome.html", map);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user