Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
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
micro_app
gk
Commits
5efb50fd
Commit
5efb50fd
authored
Jan 16, 2023
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完赛证书下载改成动态获取链接
parent
cc844702
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
2 deletions
+30
-2
NewsService.java
src/main/java/com/dlbridge/feign/NewsService.java
+3
-0
NewsController.java
...va/com/dlbridge/jadp/plugins/cmpt/web/NewsController.java
+3
-0
application-dev.properties
src/main/resources/application-dev.properties
+1
-1
cert.jsp
src/main/webapp/WEB-INF/views/cmpt/cert.jsp
+23
-1
No files found.
src/main/java/com/dlbridge/feign/NewsService.java
View file @
5efb50fd
...
...
@@ -2,6 +2,7 @@ package com.dlbridge.feign;
import
com.dlbridge.feign.bean.News
;
import
com.dlbridge.jadp.config.web.FeignConfig
;
import
com.dlbridge.jadp.fallback.GeexekScoreFallbackFactory
;
import
com.dlbridge.jadp.fallback.NewsFallbackFactory
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
@@ -12,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
import
java.util.List
;
@FeignClient
(
name
=
"news-service"
,
configuration
=
FeignConfig
.
class
,
fallbackFactory
=
NewsFallbackFactory
.
class
)
//@FeignClient(name = "news-service", url = "https://zs.geexek.com/", fallbackFactory = NewsFallbackFactory.class)
@RequestMapping
(
"news"
)
public
interface
NewsService
{
...
...
@@ -30,3 +32,4 @@ public interface NewsService {
@RequestMapping
(
value
=
"/list/cmptId/{cmptid}"
,
method
=
RequestMethod
.
GET
)
public
List
<
News
>
queryNewsByCmptId
(
@PathVariable
(
"cmptid"
)
int
cmptid
);
}
src/main/java/com/dlbridge/jadp/plugins/cmpt/web/NewsController.java
View file @
5efb50fd
package
com
.
dlbridge
.
jadp
.
plugins
.
cmpt
.
web
;
import
com.alibaba.fastjson.JSONObject
;
import
com.dlbridge.feign.NewsService
;
import
com.dlbridge.feign.bean.News
;
import
com.dlbridge.jadp.plugins.cmpt.bean.FuncSetting
;
...
...
@@ -7,6 +8,7 @@ import com.dlbridge.jadp.plugins.cmpt.dao.model.Cmpt;
import
com.dlbridge.jadp.plugins.cmpt.service.CmptService
;
import
com.dlbridge.jadp.plugins.cmpt.service.FuncSettingService
;
import
com.neusoft.www.utils.web.Result
;
import
lombok.extern.log4j.Log4j2
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -17,6 +19,7 @@ import org.springframework.web.servlet.ModelAndView;
import
javax.annotation.Resource
;
import
java.util.List
;
@Log4j2
@Controller
@RequestMapping
(
"/gk/news"
)
public
class
NewsController
{
...
...
src/main/resources/application-dev.properties
View file @
5efb50fd
...
...
@@ -6,7 +6,7 @@ spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.password
=
mysql_master_geexek_408
spring.datasource.username
=
mysql_master
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
spring.datasource.url
=
jdbc:mysql://rm-bp1
5ojs1ys1eur32zw
o.mysql.rds.aliyuncs.com:3306/gksite?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
spring.datasource.url
=
jdbc:mysql://rm-bp1
xezgtx890ssl6rt
o.mysql.rds.aliyuncs.com:3306/gksite?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
mybatis.typeAliasesPackage
=
com.dlbridge.jadp.plugins
mybatis.mapperLocations
=
classpath:com/dlbridge/jadp/plugins/**/**.xml
...
...
src/main/webapp/WEB-INF/views/cmpt/cert.jsp
View file @
5efb50fd
...
...
@@ -132,7 +132,29 @@
</div>
<script>
$
(
'.download'
).
click
(
function
()
{
window
.
open
(
"http://img.geexek.com/files/timerDownload/GeexekAssistant.2.0.7.3.exe?v=1593514668671"
)
$
.
ajax
({
url
:
'https://timerbackend.geexek.com/checkVersion.do'
,
data
:
{
flg
:
9
},
dataType
:
'json'
,
async
:
false
,
'success'
:
function
(
data
){
if
(
data
.
status
==
0
&&
data
.
list
!=
undefined
)
{
var
timestamp
=
new
Date
().
getTime
();
var
url
=
""
;
$
.
each
(
data
.
list
,
function
(
i
,
e
){
if
(
e
.
type
==
1
){
url
=
e
.
url
+
"?v="
+
timestamp
;
}
});
window
.
open
(
url
);
}
},
'error'
:
function
(
XMLHttpRequest
,
textStatus
,
errorThrown
){
},
'complete'
:
function
(){
}
});
})
</script>
</body>
...
...
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