From 6ba5b60e09e8800ee273c5a56ce2912282cfea24 Mon Sep 17 00:00:00 2001 From: Catouse Date: Wed, 4 May 2016 10:25:37 +0800 Subject: [PATCH] * refactor code. --- module/tutorial/control.php | 3 ++- www/js/my.full.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module/tutorial/control.php b/module/tutorial/control.php index de461e2497..96934d4c71 100644 --- a/module/tutorial/control.php +++ b/module/tutorial/control.php @@ -32,6 +32,7 @@ class tutorial extends control $setting = isset($this->config->tutorial->tasks->setting) ? $this->config->tutorial->tasks->setting : ''; $this->session->set('tutorialMode', true); + $this->loadModel('setting')->setItem($this->app->user->account . '.common.global.novice', true); $this->view->title = $this->lang->tutorial->common; $this->view->current = $task; @@ -71,7 +72,7 @@ class tutorial extends control $this->loadModel('setting')->setItem($this->app->user->account . '.common.global.novice', false); if(empty($referer)) $referer = $this->createLink('index'); - die(js::locate($referer, 'parent')); + die(js::locate(helper::safe64Decode($referer), 'parent')); } /** diff --git a/www/js/my.full.js b/www/js/my.full.js index 4aca74f86a..c274171c17 100644 --- a/www/js/my.full.js +++ b/www/js/my.full.js @@ -1781,7 +1781,7 @@ function checkTutorial() { if(confirm(window.TUTORIAL.tip)) { - $.getJSON(createLink('tutorial', 'quit'), function() + $.getJSON(createLink('tutorial', 'ajaxQuit'), function() { window.location.reload(); }).error(function(){alert(lang.timeout)});