|  | @@ -438,14 +438,14 @@ module.exports = app => {
 | 
	
		
			
				|  |  |              };
 | 
	
		
			
				|  |  |              try {
 | 
	
		
			
				|  |  |                const projectData = await ctx.service.project.getProjectByCode(ctx.session.sessionProject.code)
 | 
	
		
			
				|  |  | -              const accountData = await ctx.service.projectAccount.getDataById(ctx.session.sessionUser.account.id)
 | 
	
		
			
				|  |  | +              const accountData = await ctx.service.projectAccount.getDataById(ctx.session.sessionUser.accountId)
 | 
	
		
			
				|  |  |                if (!projectData || !accountData) {
 | 
	
		
			
				|  |  |                  throw new Error('参数错误')
 | 
	
		
			
				|  |  |                }
 | 
	
		
			
				|  |  |                  const result = await ctx.service.project.verifyManagementProject(ctx.helper.createJWT({ code: projectData.code }));
 | 
	
		
			
				|  |  | -                const token = ctx.helper.createJWT({ code, account })
 | 
	
		
			
				|  |  | +                const token = ctx.helper.createJWT({ code: projectData.code, account: accountData.account })
 | 
	
		
			
				|  |  |                  const redirect = `${app.config.managementPath}/auth?token=${token}`
 | 
	
		
			
				|  |  | -                response.data = { ...result, is_admin: accountData.account === projectData.userAccount, redirect, env: app.config.env};
 | 
	
		
			
				|  |  | +                response.data = { ...result, is_admin: accountData.account === projectData.user_account, redirect, env: app.config.env};
 | 
	
		
			
				|  |  |              } catch (error) {
 | 
	
		
			
				|  |  |                  response.code = -1;
 | 
	
		
			
				|  |  |                  response.msg = error.toString();
 |