Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
李丛阳
education
Commits
1c39b1fe
Commit
1c39b1fe
authored
Jan 03, 2018
by
李丛阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
变量
parent
4b98f49b
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
28 deletions
+17
-28
BCarouselController.java
...ft/business/bcarousel/controller/BCarouselController.java
+5
-2
BChapterController.java
...soft/business/bchapter/controller/BChapterController.java
+1
-6
BLessonController.java
...cisoft/business/blesson/controller/BLessonController.java
+5
-7
BSlController.java
...va/org/rcisoft/business/bsl/controller/BSlController.java
+1
-4
Global.java
src/main/java/org/rcisoft/common/component/Global.java
+3
-5
application-dev.yml
src/main/resources/application-dev.yml
+2
-4
No files found.
src/main/java/org/rcisoft/business/bcarousel/controller/BCarouselController.java
View file @
1c39b1fe
...
...
@@ -17,7 +17,10 @@ import org.rcisoft.core.util.UploadUtil;
import
org.rcisoft.core.util.UserUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.multipart.MultipartFile
;
import
java.util.Map
;
...
...
@@ -113,7 +116,7 @@ public class BCarouselController extends PaginationController<BCarousel> {
String
path
=
global
.
getBASE_UPLOAD_SERVER_LOCATION
();
String
sl_logo_path
=
global
.
getIMAGE_LOCATION
()+
global
.
getIMAGES_LOCATION
();
boolean
type
=
false
;
if
(
(
global
.
getSERVER_LINUX
())
.
equals
(
global
.
getIS_SERVER_LINUX
())){
if
(
"1"
.
equals
(
global
.
getIS_SERVER_LINUX
())){
type
=
true
;
}
Map
<
String
,
Object
>
uploadResult
=
UploadUtil
.
picImport
(
path
,
sl_logo_path
,
file
,
type
);
...
...
src/main/java/org/rcisoft/business/bchapter/controller/BChapterController.java
View file @
1c39b1fe
...
...
@@ -12,7 +12,6 @@ import org.rcisoft.business.bchapter.dto.ScoreInfoDTO;
import
org.rcisoft.business.bchapter.entity.BChapter
;
import
org.rcisoft.business.bchapter.enums.IsCompleteEnum
;
import
org.rcisoft.business.bchapter.service.BChapterService
;
import
org.rcisoft.business.brslstudent.service.BRSlStudentService
;
import
org.rcisoft.business.bsl.service.BSlService
;
import
org.rcisoft.common.component.Global
;
import
org.rcisoft.common.controller.PaginationController
;
...
...
@@ -23,17 +22,13 @@ import org.rcisoft.core.enums.RoleFlagEnum;
import
org.rcisoft.core.exception.ServiceException
;
import
org.rcisoft.core.model.PersistModel
;
import
org.rcisoft.core.result.Result
;
import
org.rcisoft.core.result.ResultCode
;
import
org.rcisoft.core.result.ResultServiceEnums
;
import
org.rcisoft.core.util.UploadUtil
;
import
org.rcisoft.core.util.UserUtil
;
import
org.rcisoft.sys.role.dao.SysRoleRepository
;
import
org.rcisoft.sys.role.entity.SysRole
;
import
org.rcisoft.sys.user.entity.SysUser
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.util.StringUtils
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.context.request.async.WebAsyncTask
;
...
...
@@ -120,7 +115,7 @@ public class BChapterController extends PaginationController<BChapter> {
String
path
=
global
.
getMD_FILE_LOCATION
();
String
basePath
=
global
.
getBASE_UPLOAD_SERVER_LOCATION
();
boolean
type
=
false
;
if
(
(
global
.
getSERVER_LINUX
())
.
equals
(
global
.
getIS_SERVER_LINUX
())){
if
(
"1"
.
equals
(
global
.
getIS_SERVER_LINUX
())){
type
=
true
;
}
Map
<
String
,
Object
>
pic
=
UploadUtil
.
picImport
(
basePath
,
path
,
image
,
type
);
...
...
src/main/java/org/rcisoft/business/blesson/controller/BLessonController.java
View file @
1c39b1fe
...
...
@@ -3,7 +3,6 @@ package org.rcisoft.business.blesson.controller;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.collections4.Get
;
import
org.rcisoft.business.blesson.entity.BLesson
;
import
org.rcisoft.business.blesson.service.BLessonService
;
import
org.rcisoft.common.component.Global
;
...
...
@@ -14,22 +13,21 @@ import org.rcisoft.core.converter.MultipartFile2HSSFWorkbookConverter;
import
org.rcisoft.core.exception.ServiceException
;
import
org.rcisoft.core.model.PersistModel
;
import
org.rcisoft.core.result.Result
;
import
org.rcisoft.core.result.ResultCode
;
import
org.rcisoft.core.result.ResultServiceEnums
;
import
org.rcisoft.core.util.UploadUtil
;
import
org.rcisoft.core.util.UserUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.multipart.MultipartFile
;
import
javax.validation.Valid
;
import
java.util.Map
;
import
static
org
.
springframework
.
web
.
bind
.
annotation
.
RequestMethod
.
GET
;
/**
* Created by CodeGenerator on 2017/07/12.
*/
...
...
@@ -102,7 +100,7 @@ public class BLessonController extends PaginationController<BLesson> {
String
path
=
global
.
getBASE_UPLOAD_SERVER_LOCATION
();
String
course_logo_path
=
global
.
getIMAGE_LOCATION
()+
global
.
getCOURCE_LOGO_LOCATION
();
boolean
type
=
false
;
if
(
(
global
.
getSERVER_LINUX
())
.
equals
(
global
.
getIS_SERVER_LINUX
())){
if
(
"1"
.
equals
(
global
.
getIS_SERVER_LINUX
())){
type
=
true
;
}
Map
<
String
,
Object
>
map
=
UploadUtil
.
picImport
(
path
,
course_logo_path
,
importFile
,
type
);
...
...
src/main/java/org/rcisoft/business/bsl/controller/BSlController.java
View file @
1c39b1fe
...
...
@@ -3,7 +3,6 @@ package org.rcisoft.business.bsl.controller;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
org.rcisoft.business.blesson.entity.BLesson
;
import
org.rcisoft.business.bsl.dto.SlDetailDTO
;
import
org.rcisoft.business.bsl.entity.BSl
;
import
org.rcisoft.business.bsl.service.BSlService
;
...
...
@@ -21,14 +20,12 @@ import org.rcisoft.core.util.UploadUtil;
import
org.rcisoft.core.util.UserUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
javax.validation.Valid
;
import
java.io.UnsupportedEncodingException
;
import
java.util.List
;
import
java.util.Map
;
/**
...
...
@@ -163,7 +160,7 @@ public class BSlController extends PaginationController<BSl> {
String
path
=
global
.
getBASE_UPLOAD_SERVER_LOCATION
();
String
sl_logo_path
=
global
.
getIMAGE_LOCATION
()
+
global
.
getLANCH_LOGO_LOCATION
();
boolean
type
=
false
;
if
(
(
global
.
getSERVER_LINUX
())
.
equals
(
global
.
getIS_SERVER_LINUX
())){
if
(
"1"
.
equals
(
global
.
getIS_SERVER_LINUX
())){
type
=
true
;
}
Map
<
String
,
Object
>
uploadResult
=
UploadUtil
.
picImport
(
path
,
sl_logo_path
,
cover
,
type
);
...
...
src/main/java/org/rcisoft/common/component/Global.java
View file @
1c39b1fe
...
...
@@ -24,14 +24,12 @@ public class Global {
*/
static
Map
<
String
,
String
>
map
=
Maps
.
newHashMap
();
/*服务器地址*/
@Value
(
"${global.other.server_url}"
)
private
String
SERVER_URL
;
/*服务器保存图片路径*/
@Value
(
"${global.other.server_linux}"
)
private
String
SERVER_LINUX
;
/*服务器保存图片路径*/
@Value
(
"${global.path.base_upload_server_location}"
)
private
String
BASE_UPLOAD_SERVER_LOCATION
;
...
...
@@ -113,7 +111,7 @@ public class Global {
private
String
MD_FILE_LOCATION
;
/*登录验证秘钥*/
@Value
(
"${global.
other
.login_secert_key}"
)
@Value
(
"${global.
jwt
.login_secert_key}"
)
private
String
LOGIN_SECERT_KEY
;
@Value
(
"${jwt.header}"
)
...
...
src/main/resources/application-dev.yml
View file @
1c39b1fe
...
...
@@ -69,6 +69,7 @@ jwt:
secret
:
mySecret
expiration
:
604800
tokenHead
:
"
Bearer
"
login_secert_key
:
"
base64EncodedSecretKey"
route
:
authentication
:
path
:
"
/login"
...
...
@@ -121,11 +122,8 @@ global:
che_project_init_location
:
/working/dockervolume/chedir/project
other
:
server_url
:
http://gwf.natapp.cc/eduServer
server_linux
:
1
login_secert_key
:
"
base64EncodedSecretKey"
is_server_linux
:
5
is_server_linux
:
1
max_code_length
:
15
session_admin_header_value
:
pYez25-y7nqPfm9seY2S
code
:
admin
:
ROLE_1001
teacher
:
ROLE_1002
...
...
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