Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
3dc658dc
Unverified
Commit
3dc658dc
authored
Feb 09, 2020
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
♻
重构请求路由 #61
parent
a436a677
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
src/main/java/org/b3log/solo/processor/IndexProcessor.java
src/main/java/org/b3log/solo/processor/IndexProcessor.java
+0
-6
src/test/java/org/b3log/solo/processor/IndexProcessorTestCase.java
...java/org/b3log/solo/processor/IndexProcessorTestCase.java
+2
-1
No files found.
src/main/java/org/b3log/solo/processor/IndexProcessor.java
View file @
3dc658dc
...
@@ -163,12 +163,6 @@ public class IndexProcessor {
...
@@ -163,12 +163,6 @@ public class IndexProcessor {
* @param context the specified context
* @param context the specified context
*/
*/
public
void
showStart
(
final
RequestContext
context
)
{
public
void
showStart
(
final
RequestContext
context
)
{
if
(
initService
.
isInited
()
&&
null
!=
Solos
.
getCurrentUser
(
context
.
getRequest
(),
context
.
getResponse
()))
{
context
.
sendRedirect
(
Latkes
.
getServePath
());
return
;
}
String
referer
=
context
.
param
(
"referer"
);
String
referer
=
context
.
param
(
"referer"
);
if
(
StringUtils
.
isBlank
(
referer
))
{
if
(
StringUtils
.
isBlank
(
referer
))
{
referer
=
context
.
header
(
"referer"
);
referer
=
context
.
header
(
"referer"
);
...
...
src/test/java/org/b3log/solo/processor/IndexProcessorTestCase.java
View file @
3dc658dc
...
@@ -24,6 +24,7 @@ import org.b3log.solo.MockRequest;
...
@@ -24,6 +24,7 @@ import org.b3log.solo.MockRequest;
import
org.b3log.solo.MockResponse
;
import
org.b3log.solo.MockResponse
;
import
org.b3log.solo.util.Solos
;
import
org.b3log.solo.util.Solos
;
import
org.testng.Assert
;
import
org.testng.Assert
;
import
org.testng.annotations.Test
;
import
java.util.Set
;
import
java.util.Set
;
...
@@ -34,7 +35,7 @@ import java.util.Set;
...
@@ -34,7 +35,7 @@ import java.util.Set;
* @version 1.0.1.4, Feb 22, 2019
* @version 1.0.1.4, Feb 22, 2019
* @since 1.7.0
* @since 1.7.0
*/
*/
//
@Test(suiteName = "processor")
@Test
(
suiteName
=
"processor"
)
public
class
IndexProcessorTestCase
extends
AbstractTestCase
{
public
class
IndexProcessorTestCase
extends
AbstractTestCase
{
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment