| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -15,7 +15,11 @@ import RightPane from './rightpane';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import { Icon } from 'antd';
 | 
					 | 
					 | 
					 | 
					import { Icon } from 'antd';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import UserInfo from '../components/userInfo';
 | 
					 | 
					 | 
					 | 
					import UserInfo from '../components/userInfo';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import actions from '../../../redux/actions';
 | 
					 | 
					 | 
					 | 
					import actions from '../../../redux/actions';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					<<<<<<< HEAD
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import { CNotificationHOC } from 'educoder';
 | 
					 | 
					 | 
					 | 
					import { CNotificationHOC } from 'educoder';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					=======
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import { fromStore, CNotificationHOC } from 'educoder';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					>>>>>>> 73d555c... fix
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import { withRouter } from 'react-router';
 | 
					 | 
					 | 
					 | 
					import { withRouter } from 'react-router';
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					function StudentStudy(props) {
 | 
					 | 
					 | 
					 | 
					function StudentStudy(props) {
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -45,18 +49,18 @@ function StudentStudy(props) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    // 保存当前的id
 | 
					 | 
					 | 
					 | 
					    // 保存当前的id
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    saveUserProgramIdentifier(id);
 | 
					 | 
					 | 
					 | 
					    saveUserProgramIdentifier(id);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    // startProgramQuestion(id);
 | 
					 | 
					 | 
					 | 
					    // startProgramQuestion(id);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							// console.log("getUserProgramDetail(id)");
 | 
					 | 
					 | 
					 | 
					    // console.log("getUserProgramDetail(id)");
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							// console.log(id);
 | 
					 | 
					 | 
					 | 
					    // console.log(id);
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							// console.log(id.charAt(id.length-1));
 | 
					 | 
					 | 
					 | 
					    // console.log(id.charAt(id.length-1));
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							try {
 | 
					 | 
					 | 
					 | 
					    try {
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								if(id.charAt(id.length-1)==="?"){
 | 
					 | 
					 | 
					 | 
					      if (id.charAt(id.length - 1) === "?") {
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									id = id.substring(0, id.length - 1);
 | 
					 | 
					 | 
					 | 
					        id = id.substring(0, id.length - 1);
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								}
 | 
					 | 
					 | 
					 | 
					      }
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							}catch (e) {
 | 
					 | 
					 | 
					 | 
					    } catch (e) {
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							}
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							getUserProgramDetail(id);
 | 
					 | 
					 | 
					 | 
					    getUserProgramDetail(id);
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    const $searchs = window.location.search && window.location.search.substring(1);
 | 
					 | 
					 | 
					 | 
					    const $searchs = window.location.search && window.location.search.substring(1);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    if ($searchs) {
 | 
					 | 
					 | 
					 | 
					    if ($searchs) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      const $params = $searchs.split('&') || [];
 | 
					 | 
					 | 
					 | 
					      const $params = $searchs.split('&') || [];
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -65,7 +69,7 @@ function StudentStudy(props) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        const keys = item.split('=');
 | 
					 | 
					 | 
					 | 
					        const keys = item.split('=');
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        obj[keys[0]] = keys[1];
 | 
					 | 
					 | 
					 | 
					        obj[keys[0]] = keys[1];
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      });
 | 
					 | 
					 | 
					 | 
					      });
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      saveSearchParams({searchParams: $searchs, curPage: obj['pages']});
 | 
					 | 
					 | 
					 | 
					      saveSearchParams({ searchParams: $searchs, curPage: obj['pages'] });
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    if (tab) {
 | 
					 | 
					 | 
					 | 
					    if (tab) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      changeUserCodeTab(tab);
 | 
					 | 
					 | 
					 | 
					      changeUserCodeTab(tab);
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -73,12 +77,11 @@ function StudentStudy(props) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  }, []);
 | 
					 | 
					 | 
					 | 
					  }, []);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  useEffect(() => {
 | 
					 | 
					 | 
					 | 
					  useEffect(() => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    const { hack = {} } = props;
 | 
					 | 
					 | 
					 | 
					    if (hack && hack.modify_code && hasUpdate) { // 代码更改,提示是否需要更新代码
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    if (hack.modify_code && hasUpdate) { // 代码更改,提示是否需要更新代码
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      setHasUpdate(false);
 | 
					 | 
					 | 
					 | 
					      setHasUpdate(false);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      handleUpdateNotice();
 | 
					 | 
					 | 
					 | 
					      handleUpdateNotice();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  }, [props, hasUpdate, setHasUpdate]);
 | 
					 | 
					 | 
					 | 
					  }, [hack, hasUpdate]);
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const handleUpdateNotice = () => {
 | 
					 | 
					 | 
					 | 
					  const handleUpdateNotice = () => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    console.log(props);
 | 
					 | 
					 | 
					 | 
					    console.log(props);
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -182,7 +185,7 @@ function StudentStudy(props) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					const mapStateToProps = (state) => {
 | 
					 | 
					 | 
					 | 
					const mapStateToProps = (state) => {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const { userInfo } = state.userReducer;
 | 
					 | 
					 | 
					 | 
					  const { userInfo } = state.userReducer;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const { hack_identifier, user_program_identifier,  hack } = state.ojForUserReducer;
 | 
					 | 
					 | 
					 | 
					  const { hack_identifier, user_program_identifier, hack } = state.ojForUserReducer;
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  const { searchParams } = state.ojFormReducer;
 | 
					 | 
					 | 
					 | 
					  const { searchParams } = state.ojFormReducer;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  return {
 | 
					 | 
					 | 
					 | 
					  return {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    hack,
 | 
					 | 
					 | 
					 | 
					    hack,
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |