Compare commits

...

10 Commits

Author SHA1 Message Date
TS-QD1
99e061db38 删除不必要的文件 2023-10-24 16:21:50 +08:00
TS-QD1
8dcfac648c 创建高新区备份 2023-10-24 15:55:18 +08:00
TS-QD1
90a5e3a154 修改配置文件 2023-10-17 12:57:27 +08:00
TS-QD1
7e19edbf56 案件检查图片非必填 2023-03-13 18:18:58 +08:00
TS-QD1
d061cdc40c 案件列表/案件统计 增加 专管员区域 条件筛选 2023-03-06 18:13:27 +08:00
7dd0b4b332 Merge remote-tracking branch 'origin/noPermission' into noPermission 2022-09-06 11:56:36 +08:00
4d91514ebd 处理问题 2022-09-06 11:56:30 +08:00
wans
a122874bf0 添加蒙速办H5应用对接配置信息 2022-03-30 16:32:27 +08:00
wans
a7e051f0ae 引入蒙速办H5依赖 2022-03-30 15:32:39 +08:00
d1b72dc1ea 增加高新区首页 2021-12-30 10:00:20 +08:00
23 changed files with 215 additions and 1090 deletions

View File

@ -1,7 +0,0 @@
FROM openjdk:8u292-jre-buster
ARG JAR_FILE=/target/*.jar
COPY ${JAR_FILE} service-user-center.jar
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=dev","/service-user-center.jar"]
# 时区问题
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

View File

@ -1,7 +0,0 @@
FROM openjdk:8u292-jre-buster
ARG JAR_FILE=/target/*.jar
COPY ${JAR_FILE} service-user-center.jar
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=jnhb","/service-user-center.jar"]
# 时区问题
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

10
pom.xml
View File

@ -10,9 +10,9 @@
</parent>
<groupId>com.cm</groupId>
<artifactId>service-user-center</artifactId>
<artifactId>system-user-center</artifactId>
<version>2.0.2.RELEASE</version>
<name>service-user-center</name>
<name>system-user-center</name>
<description>统一用户管理系统</description>
<properties>
@ -128,6 +128,12 @@
<version>1.0.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.cm</groupId>
<artifactId>cloud-common-msbh5</artifactId>
<version>1.0.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>

View File

@ -3,6 +3,7 @@ package com.cm.serviceusercenter;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@ -13,6 +14,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@SpringBootApplication
@ComponentScan("com.cm")
@MapperScan({"com.cm.**.dao"})
@ServletComponentScan(basePackages = "com.cm")
public class ServiceUserCenterApplication {
public static void main(String[] args) {

View File

@ -69,7 +69,8 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
"/route/file/**",
"/api/sms/getverificationcode/*",
"/api/user/getsignintype/**",
"/ws")
"/ws",
"/inspur/**")
.permitAll()
.and()
.authorizeRequests()

View File

@ -3,7 +3,6 @@ package com.cm.serviceusercenter.controller;
import com.cm.common.component.SecurityComponent;
import com.cm.common.config.properties.SystemProperties;
import com.cm.common.constants.ISystemConstant;
import com.cm.common.dingding.config.properties.DingDingAppProperties;
import com.cm.common.exception.SearchException;
import com.cm.common.pojo.bos.UserInfoBO;
import com.cm.common.utils.verification.code.Captcha;
@ -15,6 +14,7 @@ import com.cm.serviceusercenter.manager.ConfigManager;
import com.cm.serviceusercenter.service.system.menu.IMenuService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@ -47,10 +47,12 @@ public class SignController {
private IMenuService menuService;
@Autowired
private DingDingScanCodeLoginProperties dingDingScanCodeLoginProperties;
@Value("${server.default-home-page:index}")
private String defaultHomePage;
@GetMapping("index")
public ModelAndView goIndex() throws SearchException {
ModelAndView mv = new ModelAndView("index");
ModelAndView mv = new ModelAndView(defaultHomePage);
UserInfoBO userInfoBO = securityComponent.getCurrentUser();
mv.addObject("userUsername", userInfoBO.getUserUsername());
return mv;

View File

@ -1,9 +1,10 @@
server:
port: 7021
url: http://192.168.0.103:7021/usercenter
ws: ws://192.168.0.103:7021/usercenter/ws
url: http://127.0.0.1:7021/usercenter
ws: ws://127.0.0.1:7021/usercenter/ws
title: 统一用户管理平台
login-page-name: 统一用户管理平台
default-home-page: index-gxq
servlet:
context-path: /usercenter
@ -28,7 +29,7 @@ spring:
max-request-size: 1GB
datasource:
druid:
url: jdbc:mysql://127.0.0.1:3306/db_btgxq_usercenter?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC
url: jdbc:mysql://192.168.0.151:3306/db_btgxq_city?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC
db-type: mysql
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
@ -87,7 +88,7 @@ swagger:
swagger-base-package: com.cm
file:
uploadPath: /Users/wanggeng/Desktop/UploadFiles/
uploadPath: C:\Users\TS-QD1\Desktop\UploadFiles\
imageTypes: png,jpg,jpeg,gif,blob
videoTypes: mp4,rmvb
audioTypes: mp3,wmv
@ -122,7 +123,7 @@ access-control:
- /count*/**
logging:
file: /Users/wanggeng/Desktop/UploadFiles/usercenter/serviceuser-logs.log
file: C:\Users\TS-QD1\Desktop\UploadFiles\logs\usercenter\logs.log
level:
root: error
com.cm: debug

View File

@ -1,166 +0,0 @@
server:
port: 7011
url: http://1.180.60.42:8084/usercenter
ws: ws://1.180.60.42:8084/usercenter/ws
title: 统一用户管理平台
login-page-name: 统一用户管理平台
servlet:
context-path: /usercenter
spring:
login-url: /oauth/login
login-failure: /oauth/login?error
login-process: /userlogin
assets-matchers: /assets/**
thymeleaf:
prefix: classpath:/templates/
suffix: .html
mode: HTML5
encoding: UTF-8
cache: false
main:
allow-bean-definition-overriding: true
application:
name: sso-server
servlet:
multipart:
max-file-size: 1GB
max-request-size: 1GB
datasource:
druid:
url: jdbc:mysql://127.0.0.1:3306/db_cloud_v2_test?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC
db-type: mysql
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: TSkj@0471.123
initial-size: 2
min-idle: 2
max-active: 10
# 配置获取连接等待超时的时间
max-wait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
time-between-eviction-runs-millis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1 FROM DUAL
test-while-idle: true
test-on-borrow: false
test-on-return: false
# 打开PSCache并且指定每个连接上PSCache的大小
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 10
# 配置监控统计拦截的filters去掉后监控界面sql无法统计'wall'用于防火墙
filter:
commons-log:
connection-logger-name: stat,wall,log4j
stat:
log-slow-sql: true
slow-sql-millis: 2000
# 通过connectProperties属性来打开mergeSql功能慢SQL记录
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
# 合并多个DruidDataSource的监控数据
use-global-data-source-stat: true
mybatis:
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath*:mybatis/mapper/**/*.xml
management:
endpoints:
web:
exposure:
include: '*'
enabled-by-default: true
endpoint:
health:
show-details: always
oauthClient:
clientId: 4995b2989c274e76917a8c6144d4ab3b
clientSecret: ektSeDMwekFDZzl0WnpFQ0ZKZGo1T3NHZkpwODNsdHpmbGU0KzVheHVTQW1ac2wwZTJHWk5NbXh3L3h3U2c4Rg==
swagger:
title: 接口文档
description: 用户相关接口文档
service-url: http://www.wgink.ink
version: 1.0
swagger-base-package: com.cm
file:
uploadPath: /root/projects_test/uploadFiles/
imageTypes: png,jpg,jpeg,gif,blob
videoTypes: mp4,rmvb
audioTypes: mp3,wmv
fileTypes: doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,apk,pdf
maxFileCount: 6
# 访问控制
access-control:
pass-paths:
- /index.html
- /logout.html
- /default.html
- /assets/**
- /api/oauthclient/listoauthclient
- /api/oauthclient/countoauthclient
- /api/user/countuser
- /api/file/uploadfile
save-paths:
- /save*/**
- /add*/**
delete-paths:
- /delete*/**
- /remove*/**
update-paths:
- /update*/**
- /edit*/**
query-paths:
- /get*/**
- /query*/**
- /find*/**
- /list*/**
- /count*/**
logging:
file: /root/projects_test/logs/usercenter/serviceuser-logs.log
level:
root: error
com.cm: debug
# 短信服务
sms:
active: true
type: default
default-sms:
account: xd001382
password: xd001382136
sign: 【腾狮科技】
template:
verification-code: '{sign} 您的验证码为 {content}, 有效时间为120秒若非本人操作请忽略。'
# 邮件服务
email:
active: true
smtp: smtp.qq.com
port: 587
sender-email: 450292408@qq.com
sender-password: pezxpunlxzqgbhhd
cc-persons:
- 450292408@qq.com
- 76158045@qq.com
socket:
central-control:
active: false
server:
port: 8888
# 最大连接数
so-backlog: 1024
# 服务端超时断连(秒)
read-idle-time-second: 10
# 离线通知时间分钟默认10分钟
offline-notice-minute: 10
# 离线通知次数
offline-notice-count: 3
# 异常通知最大值
exception-notice-count: 10

View File

@ -1,239 +0,0 @@
server:
port: 7001
url: http://192.168.0.152:7001/usercenter
title: 统一用户管理平台
login-page-name: 统一用户管理平台
servlet:
context-path: /usercenter
spring:
login-url: /oauth/login
login-failure: /oauth/login?error
login-process: /userlogin
assets-matchers: /assets/**
thymeleaf:
prefix: classpath:/templates/
suffix: .html
mode: HTML5
encoding: UTF-8
cache: false
main:
allow-bean-definition-overriding: true
application:
name: sso-server
servlet:
multipart:
max-file-size: 1GB
max-request-size: 1GB
datasource:
druid:
url: jdbc:mysql://192.168.0.151:3306/db_cloud?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC
db-type: mysql
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: root
initial-size: 2
min-idle: 2
max-active: 10
# 配置获取连接等待超时的时间
max-wait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
time-between-eviction-runs-millis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1 FROM DUAL
test-while-idle: true
test-on-borrow: false
test-on-return: false
# 打开PSCache并且指定每个连接上PSCache的大小
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 10
# 配置监控统计拦截的filters去掉后监控界面sql无法统计'wall'用于防火墙
filter:
commons-log:
connection-logger-name: stat,wall,log4j
stat:
log-slow-sql: true
slow-sql-millis: 2000
# 通过connectProperties属性来打开mergeSql功能慢SQL记录
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
# 合并多个DruidDataSource的监控数据
use-global-data-source-stat: true
mybatis:
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath*:mybatis/mapper/**/*.xml
management:
endpoints:
web:
enabled: true
exposure:
include: '*'
base-path: /manage
enabled-by-default: true
endpoint:
env:
enabled: true
health:
show-details: always
# 用户,非必填
user:
# 默认密码
default-password: 88888888
oauthClient:
clientId: 4995b2989c274e76917a8c6144d4ab3b
clientSecret: ektSeDMwekFDZzl0WnpFQ0ZKZGo1T3NHZkpwODNsdHpmbGU0KzVheHVTQW1ac2wwZTJHWk5NbXh3L3h3U2c4Rg==
swagger:
title: 接口文档
description: 用户相关接口文档
service-url: https://baidu.com/
version: 1.0
swagger-base-package: com.cm
file:
uploadPath: /projects/uploadFiles/
imageTypes: png,jpg,jpeg,gif,blob
videoTypes: mp4,rmvb
audioTypes: mp3,wmv
fileTypes: doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,apk,pdf
maxFileCount: 6
# 访问控制
access-control:
pass-paths:
- /index.html
- /logout.html
- /default.html
- /assets/**
- /web/**
- /api/oauthclient/listoauthclient
- /api/oauthclient/countoauthclient
- /api/user/countuser
- /api/file/uploadfile
save-paths:
- /save*/**
- /add*/**
delete-paths:
- /delete*/**
- /remove*/**
update-paths:
- /update*/**
- /edit*/**
query-paths:
- /get*/**
- /query*/**
- /find*/**
- /list*/**
- /count*/**
logging:
file: /projects/logs/usercenter/serviceuser-logs.log
level:
root: error
com.cm: debug
# 短信服务
sms:
active: false
type: default
default-sms:
account: xd001382
password: xd001382136
sign: 【日喀则文化馆】
template:
verification-code: '{sign} 您的验证码为 {content}, 有效时间为120秒若非本人操作请忽略。'
open-platform:
# 钉钉
dingding:
# 扫码登陆通过扫码拿到用户unionid通过access_token获取个人信息需要设置钉钉通讯录权限设置访问白名单
scan-code-login:
app-id: dingoaorwac5cel8rt57rz
app-secret: j5n_xRR5eiWGWdNSr3z1UNtGnSRxb1sLp2aKHofwiUuxT8cnJRc46bXTCDBe2t_x
userinfo-url: https://oapi.dingtalk.com/sns/getuserinfo_bycode
# 必须有一个APP来辅助钉钉扫码登陆
app:
active: false
agent-id: 295981340
app-key: dingxz2jzohb7dft9iw7
app-secret: MWjSN1PUML-tCjgiSCOUR62Fs_-bdJSaHcorWhLZsd6pKTw6YL-USdsW87QWLxd6
token-url: https://oapi.dingtalk.com/gettoken
userid-by-unionid-url: https://oapi.dingtalk.com/user/getUseridByUnionid
userinfo-by-id-url: https://oapi.dingtalk.com/user/get
# 微信
wechat:
mini-app:
# 激活状态
active: false
authorizeUrl: https://api.weixin.qq.com/sns/jscode2session
# 绑定用户连接,指向统一用户,可以内网
bindUserUrl: http://127.0.0.1:7001/usercenter/wxminiapp/sign/logincheckusername
grantType: authorization_code
# appKey: wxe17874894f7ff27b
# appSecret: 9ab6a87ccedf6555809f1a42e3820f12
# appKey: wx953da91650b16128
# appSecret: 69ba0f0223da28e1472a9fe33b4c34d7
appKey: wxc529578602bca580
appSecret: fb752f8eed90ed449e7194c82756bb7f
# 公众号
official-account:
# 开启跨域
apiCrossOrigin: false
activate: false
authorize:
authorize-url: https://open.weixin.qq.com/connect/oauth2/authorize
access-token-url: https://api.weixin.qq.com/sns/oauth2/access_token
access-token-refresh-url: https://api.weixin.qq.com/sns/oauth2/refresh_token
userinfo-url: https://api.weixin.qq.com/sns/userinfo
response-type: code
scope: snsapi_userinfo
state: wechatRedirectUrl
grant-type: authorization_code
access-token-url: https://api.weixin.qq.com/cgi-bin/token
bind-user-url: http://192.168.0.113:7001/usercenter/wechat/sign/login
app-id: wx583634d14c596fd7
app-secret: 1158dcddd267c6f42b99bda62f842893
grant-type: client_credential
config-token: WenG
# 邮件服务
email:
active: false
smtp: smtp.163.com
port: 25
sender-email: dpdbd001@163.com
sender-password: WAASUQNNVITVXDJS
cc-persons:
- 450292408@qq.com
- 76158045@qq.com
socket:
central-control:
active: true
server:
port: 7888
# 最大连接数
so-backlog: 1024
# 服务端超时断连(秒)
read-idle-time-second: 10
# 离线通知时间分钟默认10分钟
offline-notice-minute: 1
# 离线通知次数
offline-notice-count: 3
# 异常通知最大值
exception-notice-count: 10
client:
client-id: 317dce24-79cb-41c4-9d59-8b7eaa146eb1
client-secret: DpLh+yC8k6JwVEqsf+DCelvvIKlYd6HO60EH8hUdiWuANOlRunYMCMoUsGr0Gqh3
host: 49.233.36.36
port: 8888
max-reconnect-count: 20
reconnect-time-step: 1
delay-ping-seconds: 3
send-client-info-active: false
# 上报服务器数据时间
send-client-info-second: 30

View File

@ -1,240 +0,0 @@
server:
port: 7001
url: http://106.12.218.237:8001/usercenter
ws: ws://106.12.218.237:8001/usercenter/ws
title: 统一用户管理平台
login-page-name: 统一用户管理平台
servlet:
context-path: /usercenter
spring:
login-url: /oauth/login
login-failure: /oauth/login?error
login-process: /userlogin
assets-matchers: /assets/**
thymeleaf:
prefix: classpath:/templates/
suffix: .html
mode: HTML5
encoding: UTF-8
cache: false
main:
allow-bean-definition-overriding: true
application:
name: sso-server
servlet:
multipart:
max-file-size: 1GB
max-request-size: 1GB
datasource:
druid:
url: jdbc:mysql://localhost:8668/db_cloud_v2?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC
db-type: mysql
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: TSkj@0471.123
initial-size: 2
min-idle: 2
max-active: 10
# 配置获取连接等待超时的时间
max-wait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
time-between-eviction-runs-millis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1 FROM DUAL
test-while-idle: true
test-on-borrow: false
test-on-return: false
# 打开PSCache并且指定每个连接上PSCache的大小
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 10
# 配置监控统计拦截的filters去掉后监控界面sql无法统计'wall'用于防火墙
filter:
commons-log:
connection-logger-name: stat,wall,log4j
stat:
log-slow-sql: true
slow-sql-millis: 2000
# 通过connectProperties属性来打开mergeSql功能慢SQL记录
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
# 合并多个DruidDataSource的监控数据
use-global-data-source-stat: true
mybatis:
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath*:mybatis/mapper/**/*.xml
management:
endpoints:
web:
enabled: true
exposure:
include: '*'
base-path: /manage
enabled-by-default: true
endpoint:
env:
enabled: true
health:
show-details: always
# 用户,非必填
user:
# 默认密码
default-password: 88888888
oauthClient:
clientId: 4995b2989c274e76917a8c6144d4ab3b
clientSecret: ektSeDMwekFDZzl0WnpFQ0ZKZGo1T3NHZkpwODNsdHpmbGU0KzVheHVTQW1ac2wwZTJHWk5NbXh3L3h3U2c4Rg==
swagger:
title: 接口文档
description: 用户相关接口文档
service-url: https://106.12.218.237:8001/
version: 1.0
swagger-base-package: com.cm
file:
uploadPath: /projects/uploadFiles/
imageTypes: png,jpg,jpeg,gif,blob
videoTypes: mp4,rmvb
audioTypes: mp3,wmv
fileTypes: doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,apk,pdf
maxFileCount: 6
# 访问控制
access-control:
pass-paths:
- /index.html
- /logout.html
- /default.html
- /assets/**
- /web/**
- /api/oauthclient/listoauthclient
- /api/oauthclient/countoauthclient
- /api/user/countuser
- /api/file/uploadfile
save-paths:
- /save*/**
- /add*/**
delete-paths:
- /delete*/**
- /remove*/**
update-paths:
- /update*/**
- /edit*/**
query-paths:
- /get*/**
- /query*/**
- /find*/**
- /list*/**
- /count*/**
logging:
file: /projects/logs/usercenter/logs.log
level:
root: error
com.cm: debug
# 短信服务
sms:
active: false
type: default
default-sms:
account: xd001382
password: xd001382136
sign: 【日喀则文化馆】
template:
verification-code: '{sign} 您的验证码为 {content}, 有效时间为120秒若非本人操作请忽略。'
open-platform:
# 钉钉
dingding:
# 扫码登陆通过扫码拿到用户unionid通过access_token获取个人信息需要设置钉钉通讯录权限设置访问白名单
scan-code-login:
app-id: dingoaorwac5cel8rt57rz
app-secret: j5n_xRR5eiWGWdNSr3z1UNtGnSRxb1sLp2aKHofwiUuxT8cnJRc46bXTCDBe2t_x
userinfo-url: https://oapi.dingtalk.com/sns/getuserinfo_bycode
# 必须有一个APP来辅助钉钉扫码登陆
app:
active: false
agent-id: 295981340
app-key: dingxz2jzohb7dft9iw7
app-secret: MWjSN1PUML-tCjgiSCOUR62Fs_-bdJSaHcorWhLZsd6pKTw6YL-USdsW87QWLxd6
token-url: https://oapi.dingtalk.com/gettoken
userid-by-unionid-url: https://oapi.dingtalk.com/user/getUseridByUnionid
userinfo-by-id-url: https://oapi.dingtalk.com/user/get
# 微信
wechat:
mini-app:
# 激活状态
active: false
authorizeUrl: https://api.weixin.qq.com/sns/jscode2session
# 绑定用户连接,指向统一用户,可以内网
bindUserUrl: http://127.0.0.1:7001/usercenter/wxminiapp/sign/logincheckusername
grantType: authorization_code
# appKey: wxe17874894f7ff27b
# appSecret: 9ab6a87ccedf6555809f1a42e3820f12
# appKey: wx953da91650b16128
# appSecret: 69ba0f0223da28e1472a9fe33b4c34d7
appKey: wxc529578602bca580
appSecret: fb752f8eed90ed449e7194c82756bb7f
# 公众号
official-account:
# 开启跨域
apiCrossOrigin: false
activate: false
authorize:
authorize-url: https://open.weixin.qq.com/connect/oauth2/authorize
access-token-url: https://api.weixin.qq.com/sns/oauth2/access_token
access-token-refresh-url: https://api.weixin.qq.com/sns/oauth2/refresh_token
userinfo-url: https://api.weixin.qq.com/sns/userinfo
response-type: code
scope: snsapi_userinfo
state: wechatRedirectUrl
grant-type: authorization_code
access-token-url: https://api.weixin.qq.com/cgi-bin/token
bind-user-url: http://192.168.0.113:7001/usercenter/wechat/sign/login
app-id: wx583634d14c596fd7
app-secret: 1158dcddd267c6f42b99bda62f842893
grant-type: client_credential
config-token: WenG
# 邮件服务
email:
active: false
smtp: smtp.163.com
port: 25
sender-email: dpdbd001@163.com
sender-password: WAASUQNNVITVXDJS
cc-persons:
- 450292408@qq.com
- 76158045@qq.com
socket:
central-control:
active: false
server:
port: 7888
# 最大连接数
so-backlog: 1024
# 服务端超时断连(秒)
read-idle-time-second: 10
# 离线通知时间分钟默认10分钟
offline-notice-minute: 1
# 离线通知次数
offline-notice-count: 3
# 异常通知最大值
exception-notice-count: 10
client:
client-id: 317dce24-79cb-41c4-9d59-8b7eaa146eb1
client-secret: DpLh+yC8k6JwVEqsf+DCelvvIKlYd6HO60EH8hUdiWuANOlRunYMCMoUsGr0Gqh3
host: 49.233.36.36
port: 8888
max-reconnect-count: 20
reconnect-time-step: 1
delay-ping-seconds: 3
send-client-info-active: false
# 上报服务器数据时间
send-client-info-second: 30

View File

@ -1,173 +0,0 @@
server:
# port: 8081
port: 8868
# url: http://58.18.22.25:8081/usercenter
url: http://49.233.36.36:8868/usercenter
title: 统一用户管理平台
login-page-name: 统一用户管理平台
servlet:
context-path: /usercenter
# tomcat:
# remote-ip-header: X-Forwarded-For
# protocol-header: X-Forwarded-Proto
# protocol-header-https-value: https
spring:
login-url: /oauth/login
login-failure: /oauth/login?error
login-process: /userlogin
assets-matchers: /assets/**
thymeleaf:
prefix: classpath:/templates/
suffix: .html
mode: HTML5
encoding: UTF-8
cache: false
main:
allow-bean-definition-overriding: true
application:
name: sso-server
servlet:
multipart:
max-file-size: 1GB
max-request-size: 1GB
datasource:
druid:
url: jdbc:mysql://127.0.0.1:6688/db_cloud_v2?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC
db-type: mysql
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: WenG>)#!^)).12#$
initial-size: 2
min-idle: 2
max-active: 10
# 配置获取连接等待超时的时间
max-wait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
time-between-eviction-runs-millis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1 FROM DUAL
test-while-idle: true
test-on-borrow: false
test-on-return: false
# 打开PSCache并且指定每个连接上PSCache的大小
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 10
# 配置监控统计拦截的filters去掉后监控界面sql无法统计'wall'用于防火墙
filter:
commons-log:
connection-logger-name: stat,wall,log4j
stat:
log-slow-sql: true
slow-sql-millis: 2000
# 通过connectProperties属性来打开mergeSql功能慢SQL记录
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
# 合并多个DruidDataSource的监控数据
use-global-data-source-stat: true
mybatis:
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath*:mybatis/mapper/**/*.xml
management:
endpoints:
web:
exposure:
include: '*'
enabled-by-default: true
endpoint:
health:
show-details: always
oauthClient:
clientId: 4995b2989c274e76917a8c6144d4ab3b
clientSecret: ektSeDMwekFDZzl0WnpFQ0ZKZGo1T3NHZkpwODNsdHpmbGU0KzVheHVTQW1ac2wwZTJHWk5NbXh3L3h3U2c4Rg==
swagger:
title: 接口文档
description: 用户相关接口文档
service-url: http://www.wgink.ink
version: 1.0
swagger-base-package: com.cm
file:
# uploadPath: D:\projects\uploadFiles\
uploadPath: /root/develop/projects/uploadFiles/
imageTypes: png,jpg,jpeg,gif,blob
videoTypes: mp4,rmvb
audioTypes: mp3,wmv
fileTypes: doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,apk,pdf
maxFileCount: 6
# 访问控制
access-control:
pass-paths:
- /index.html
- /logout.html
- /default.html
- /assets/**
- /api/oauthclient/listoauthclient
- /api/oauthclient/countoauthclient
- /api/user/countuser
- /api/file/uploadfile
save-paths:
- /save*/**
- /add*/**
delete-paths:
- /delete*/**
- /remove*/**
update-paths:
- /update*/**
- /edit*/**
query-paths:
- /get*/**
- /query*/**
- /find*/**
- /list*/**
- /count*/**
logging:
# file: D:\projects\logs\usercenter\serviceuser-logs.log
file: /root/develop/projects/logs/usercenter/serviceuser-logs.log
level:
root: error
com.cm: debug
# 短信服务
sms:
active: true
type: default
default-sms:
account: xd001382
password: xd001382136
sign: 【腾狮科技】
template:
verification-code: '{sign} 您的验证码为 {content}, 有效时间为120秒若非本人操作请忽略。'
# 邮件服务
email:
active: true
smtp: smtp.qq.com
port: 587
sender-email: 450292408@qq.com
sender-password: pezxpunlxzqgbhhd
cc-persons:
- 450292408@qq.com
- 76158045@qq.com
socket:
central-control:
active: true
server:
port: 8888
# 最大连接数
so-backlog: 1024
# 服务端超时断连(秒)
read-idle-time-second: 10
# 离线通知时间分钟默认10分钟
offline-notice-minute: 10
# 离线通知次数
offline-notice-count: 3
# 异常通知最大值
exception-notice-count: 10

View File

@ -1,245 +0,0 @@
server:
port: 7001
url: http://192.168.0.103:7001/usercenter
# ws: ws://192.168.0.103:7001/usercenter/ws
title: 统一用户管理平台
login-page-name: 统一用户管理平台
servlet:
context-path: /usercenter
spring:
login-url: /oauth/login
login-failure: /oauth/login?error
login-process: /userlogin
assets-matchers: /assets/**
thymeleaf:
prefix: classpath:/templates/
suffix: .html
mode: HTML5
encoding: UTF-8
cache: false
main:
allow-bean-definition-overriding: true
application:
name: sso-server
servlet:
multipart:
max-file-size: 1GB
max-request-size: 1GB
redis:
host: 192.168.0.156
port: 6379
datasource:
druid:
# url: jdbc:mysql://49.233.36.36:6688/db_cloud?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC
url: jdbc:mysql://127.0.0.1:3306/db_jnhb_usercenter?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC
db-type: mysql
driver-class-name: com.mysql.cj.jdbc.Driver
# username: wanggeng
username: root
# password: WenG>2132997
password: root
initial-size: 2
min-idle: 2
max-active: 10
# 配置获取连接等待超时的时间
max-wait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
time-between-eviction-runs-millis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1 FROM DUAL
test-while-idle: true
test-on-borrow: false
test-on-return: false
# 打开PSCache并且指定每个连接上PSCache的大小
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 10
# 配置监控统计拦截的filters去掉后监控界面sql无法统计'wall'用于防火墙
filter:
commons-log:
connection-logger-name: stat,wall,log4j
stat:
log-slow-sql: true
slow-sql-millis: 2000
# 通过connectProperties属性来打开mergeSql功能慢SQL记录
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
# 合并多个DruidDataSource的监控数据
use-global-data-source-stat: true
mybatis:
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath*:mybatis/mapper/**/*.xml
management:
endpoints:
web:
enabled: true
exposure:
include: '*'
base-path: /manage
enabled-by-default: true
endpoint:
env:
enabled: true
health:
show-details: always
# 用户,非必填
user:
# 默认密码
default-password: 88888888
oauthClient:
clientId: 4995b2989c274e76917a8c6144d4ab3b
clientSecret: ektSeDMwekFDZzl0WnpFQ0ZKZGo1T3NHZkpwODNsdHpmbGU0KzVheHVTQW1ac2wwZTJHWk5NbXh3L3h3U2c4Rg==
swagger:
title: 接口文档
description: 用户相关接口文档
service-url: https://baidu.com/
version: 1.0
swagger-base-package: com.cm
file:
uploadPath: /Users/wanggeng/Desktop/UploadFiles
imageTypes: png,jpg,jpeg,gif,blob
videoTypes: mp4,rmvb
audioTypes: mp3,wmv
fileTypes: doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,apk,pdf
maxFileCount: 6
# 访问控制
access-control:
pass-paths:
- /index.html
- /logout.html
- /default.html
- /assets/**
- /web/**
- /api/oauthclient/listoauthclient
- /api/oauthclient/countoauthclient
- /api/user/countuser
- /api/file/uploadfile
save-paths:
- /save*/**
- /add*/**
delete-paths:
- /delete*/**
- /remove*/**
update-paths:
- /update*/**
- /edit*/**
query-paths:
- /get*/**
- /query*/**
- /find*/**
- /list*/**
- /count*/**
logging:
level:
root: error
com.cm: debug
# 短信服务
sms:
active: false
type: default
default-sms:
account: xd001382
password: xd001382136
sign: 【日喀则文化馆】
template:
verification-code: '{sign} 您的验证码为 {content}, 有效时间为120秒若非本人操作请忽略。'
open-platform:
# 钉钉
dingding:
# 扫码登陆通过扫码拿到用户unionid通过access_token获取个人信息需要设置钉钉通讯录权限设置访问白名单
scan-code-login:
app-id: dingoaorwac5cel8rt57rz
app-secret: j5n_xRR5eiWGWdNSr3z1UNtGnSRxb1sLp2aKHofwiUuxT8cnJRc46bXTCDBe2t_x
userinfo-url: https://oapi.dingtalk.com/sns/getuserinfo_bycode
# 必须有一个APP来辅助钉钉扫码登陆
app:
active: false
agent-id: 295981340
app-key: dingxz2jzohb7dft9iw7
app-secret: MWjSN1PUML-tCjgiSCOUR62Fs_-bdJSaHcorWhLZsd6pKTw6YL-USdsW87QWLxd6
token-url: https://oapi.dingtalk.com/gettoken
userid-by-unionid-url: https://oapi.dingtalk.com/user/getUseridByUnionid
userinfo-by-id-url: https://oapi.dingtalk.com/user/get
# 微信
wechat:
mini-app:
# 激活状态
active: false
authorizeUrl: https://api.weixin.qq.com/sns/jscode2session
# 绑定用户连接,指向统一用户,可以内网
bindUserUrl: http://127.0.0.1:7001/usercenter/wxminiapp/sign/logincheckusername
grantType: authorization_code
# appKey: wxe17874894f7ff27b
# appSecret: 9ab6a87ccedf6555809f1a42e3820f12
# appKey: wx953da91650b16128
# appSecret: 69ba0f0223da28e1472a9fe33b4c34d7
appKey: wxc529578602bca580
appSecret: fb752f8eed90ed449e7194c82756bb7f
# 公众号
official-account:
# 开启跨域
apiCrossOrigin: false
activate: false
authorize:
authorize-url: https://open.weixin.qq.com/connect/oauth2/authorize
access-token-url: https://api.weixin.qq.com/sns/oauth2/access_token
access-token-refresh-url: https://api.weixin.qq.com/sns/oauth2/refresh_token
userinfo-url: https://api.weixin.qq.com/sns/userinfo
response-type: code
scope: snsapi_userinfo
state: wechatRedirectUrl
grant-type: authorization_code
access-token-url: https://api.weixin.qq.com/cgi-bin/token
bind-user-url: http://192.168.0.113:7001/usercenter/wechat/sign/login
app-id: wx583634d14c596fd7
app-secret: 1158dcddd267c6f42b99bda62f842893
grant-type: client_credential
config-token: WenG
# 邮件服务
email:
active: false
smtp: smtp.163.com
port: 25
sender-email: dpdbd001@163.com
sender-password: WAASUQNNVITVXDJS
cc-persons:
- 450292408@qq.com
- 76158045@qq.com
socket:
central-control:
active: false
server:
port: 8888
# 最大连接数
so-backlog: 1024
# 服务端超时断连(秒)
read-idle-time-second: 10
# 离线通知时间分钟默认10分钟
offline-notice-minute: 1
# 离线通知次数
offline-notice-count: 3
# 异常通知最大值
exception-notice-count: 10
client:
client-id: 317dce24-79cb-41c4-9d59-8b7eaa146eb1
client-secret: DpLh+yC8k6JwVEqsf+DCelvvIKlYd6HO60EH8hUdiWuANOlRunYMCMoUsGr0Gqh3
host: 49.233.36.36
port: 8888
max-reconnect-count: 20
reconnect-time-step: 1
delay-ping-seconds: 3
send-client-info-active: true
# 上报服务器数据时间
send-client-info-second: 30

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -137,9 +137,6 @@
if(/(^\_)|(\__)|(\_+$)/.test(value)){
return '用户名首尾不能出现下划线\'_\'';
}
if(/^\d+\d+\d$/.test(value)){
return '用户名不能全为数字';
}
}
});

View File

@ -0,0 +1,155 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<base href="/usercenter/">
<title th:text="${loginPageName}"></title>
<style>
* {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: #000;
}
.container {
padding: 2% 3%;
overflow: hidden;
}
.main, .right-title {
overflow: hidden;
}
.logo {
margin-bottom: 20px
}
.left {
width: 60%;
float: left;
padding: 15px;
box-sizing: border-box;
border: 1px solid #DDD;
}
.left img {
width: 100%;
}
.right {
float: right;
width: 39%;
}
.right .title {
float: right;
}
.right-item {
font-size: 0;
margin-top: 20px;
}
.right-item a {
display: inline-block;
width: 24%;
margin-right: 1.333333%;
text-align: center;
margin-bottom: 20px
}
.right-item a:nth-child(4n) {
margin-right: 0
}
.right-item a img {
height: 80px;
margin-bottom: 10px
}
.right-item a p {
text-align: center;
font-size: 16px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis
}
</style>
</head>
<body>
<div class="container">
<div class="logo">
<img src="assets/images/gxq/logo.png" alt="">
</div>
<div class="main">
<div class="left">
<img src="assets/images/gxq/map.png" alt="">
</div>
<div class="right">
<div class="right-title">
<img src="assets/images/gxq/title.png" alt="" class="title">
</div>
<div class="right-item" id="oauthClientTemplateBox"></div>
<script id="oauthClientTemplate" type="text/html">
<a href="main" title="用户管理系统">
<img src="assets/images/gxq/1.jpg" alt="">
<p>用户管理系统</p>
</a>
{{# if(d.length > 0) { }}
{{# for(var i = 0, item; item = d[i++];) { }}
<a href="{{item.webServerRedirectUri}}" title="{{item.clientName}}">
{{# if(!item.systemIcon) { }}
<img src="assets/images/gxq/1.jpg" class="system-icon">
{{# } else { }}
<img src="route/file/downloadfile/true/{{item.systemIcon}}" class="system-icon">
{{# } }}
<p>{{item.clientName}}</p>
</a>
{{#} }}
{{#} }}
</script>
</div>
</div>
</div>
<script src="assets/layuiadmin/layui/layui.js"></script>
<script>
layui.config({
base: 'assets/layuiadmin/' //静态资源所在路径
}).extend({
index: 'lib/index' //主入口模块
}).use(['index', 'restajax', 'datamessage', 'dialog'], function () {
var $ = layui.$;
var $win = $(window);
var layer = layui.layer;
var laytpl = layui.laytpl;
var dialog = layui.dialog;
var restAjax = layui.restajax;
var dataMessage = layui.datamessage;
function initOauthClientTemplate(data) {
laytpl(document.getElementById('oauthClientTemplate').innerHTML).render(data, function (html) {
document.getElementById('oauthClientTemplateBox').innerHTML = html;
});
}
function initOauthClient() {
restAjax.get('api/oauthclient/listoauthclient', {
environment: 'formal'
}, null, function (code, data) {
initOauthClientTemplate(data);
}, function (code, data) {
dialog.msg(data.msg);
initOauthClientTemplate([]);
});
}
initOauthClient();
});
</script>
</body>
</html>

View File

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<base href="/usercenter/">
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="icon" type="image/ico" href="assets/favicon.ico"/>
<link rel="stylesheet" href="assets/layuiadmin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="assets/layuiadmin/style/admin.css" media="all">
<link rel="stylesheet" href="assets/css/supersized.css">
<link rel="stylesheet" href="assets/layuiadmin/style/login.css?t=2" media="all">
</head>
<body>
<div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login">
<div class="layui-card">
<div class="layui-card-header">蒙速办-首页</div>
<div class="layui-card-body">
该页面用于对接测试
<br>
正式环境需替换为实际应用首页
</div>
</div>
</div>
<script src="assets/layuiadmin/layui/layui.js"></script>
<script>
layui.config({
base: 'assets/layuiadmin/'
}).extend({
index: 'lib/index'
}).use(['index'], function () {
var $ = layui.$;
});
</script>
</body>
</html>