|
|
@ -32,7 +32,7 @@ import _ from 'lodash'
|
|
|
|
|
|
|
|
|
|
|
|
import TPIContext from './TPIContext'
|
|
|
|
import TPIContext from './TPIContext'
|
|
|
|
import { EDU_ADMIN, EDU_SHIXUN_MANAGER, EDU_SHIXUN_MEMBER, EDU_CERTIFICATION_TEACHER
|
|
|
|
import { EDU_ADMIN, EDU_SHIXUN_MANAGER, EDU_SHIXUN_MEMBER, EDU_CERTIFICATION_TEACHER
|
|
|
|
, EDU_GAME_MANAGER, EDU_TEACHER, EDU_NORMAL, EDU_BUSINESS, CNotificationHOC } from 'educoder'
|
|
|
|
, EDU_GAME_MANAGER, EDU_TEACHER, EDU_NORMAL, EDU_BUSINESS, CNotificationHOC ,getRandomNumber} from 'educoder'
|
|
|
|
import { MuiThemeProvider, createMuiTheme, withStyles } from 'material-ui/styles';
|
|
|
|
import { MuiThemeProvider, createMuiTheme, withStyles } from 'material-ui/styles';
|
|
|
|
import MUIDialogStyleUtil from '../modules/page/component/MUIDialogStyleUtil'
|
|
|
|
import MUIDialogStyleUtil from '../modules/page/component/MUIDialogStyleUtil'
|
|
|
|
|
|
|
|
|
|
|
@ -176,7 +176,7 @@ class TPIContextProvider extends Component {
|
|
|
|
testPath = 'http://test-newweb.educoder.net'
|
|
|
|
testPath = 'http://test-newweb.educoder.net'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// var url = `${testPath}/api/v1/games/${ game.identifier }/cost_time`
|
|
|
|
// var url = `${testPath}/api/v1/games/${ game.identifier }/cost_time`
|
|
|
|
var url = `${testPath}/api/tasks/${ game.identifier }/cost_time`
|
|
|
|
var url = `${testPath}/api/tasks/${ game.identifier }/cost_time${getRandomNumber()}`
|
|
|
|
window.$.ajax({
|
|
|
|
window.$.ajax({
|
|
|
|
type: 'get',
|
|
|
|
type: 'get',
|
|
|
|
url: url,
|
|
|
|
url: url,
|
|
|
|