This commit is contained in:
wanggeng 2024-05-31 19:44:47 +08:00
parent f7f3e2dc46
commit 8cb5d38d20
2 changed files with 4 additions and 63 deletions

View File

@ -49,7 +49,7 @@ public class LoginPhoneAuthFilter extends AbstractAuthenticationProcessingFilter
* 查到用户 * 查到用户
*/ */
UserPO userPO = iUserService.getPOByUsername(phone); UserPO userPO = iUserService.getPOByUsername(phone);
if (userPO != null && userPO.getUserState().equals("1")) { if (userPO != null && userPO.getUserState() == 1) {
iUserService.updateUserState(userPO.getUserId(), UserStateEnum.NORMAL); iUserService.updateUserState(userPO.getUserId(), UserStateEnum.NORMAL);
} }
LoginPhoneAuthToken loginPhoneAuthToken = new LoginPhoneAuthToken(phone, null); LoginPhoneAuthToken loginPhoneAuthToken = new LoginPhoneAuthToken(phone, null);

View File

@ -31,7 +31,7 @@ spring:
max-request-size: 1GB max-request-size: 1GB
datasource: datasource:
druid: druid:
url: jdbc:mysql://192.168.0.151:3306/db_system_operator?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true url: jdbc:mysql://127.0.0.1:3306/db_system_operator?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true
db-type: mysql db-type: mysql
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
username: root username: root
@ -63,65 +63,6 @@ spring:
# 合并多个DruidDataSource的监控数据 # 合并多个DruidDataSource的监控数据
use-global-data-source-stat: true use-global-data-source-stat: true
# 流程引擎
activiti:
# flase 默认值。activiti在启动时会对比数据库表中保存的版本如果没有表或者版本不匹配将抛出异常。
# true activiti会对数据库中所有表进行更新操作。如果表不存在则自动创建。
# create_drop 在activiti启动时创建表在关闭时删除表必须手动关闭引擎才能删除表
# drop-create 在activiti启动时删除原来的旧表然后在创建新表不需要手动关闭引擎
database-schema-update: true
#检测历史表是否存在
db-history-used: true
# 记录历史等级 可配置的历史级别有none, acitivity, audit, all
history-level: full
# 检查流程定义
check-process-definitions: false
rest-api-enabled: true
rest-api-servlet-name: activiti-swagger-document
SpringProcessEngineConfiguration:
activityFontName: 宋体
labelFontName: 宋体
dataSource: datasource
data:
mongodb:
uri: mongodb://smartcity:smartcity@10.25.248.193:6011/smartcity
redis:
database: 6
host: 127.0.0.16
port: 6379
password: 666
timeout: 3000ms
jedis:
pool:
max-active: 8
max-wait: 1ms
max-idle: 8
min-idle: 0
kafka-local:
topics: tableSync
bootstrap-servers: 127.0.0.16:9093
#bootstrap-servers: 175.24.42.217:9096
#bootstrap-servers: 49.233.36.36:58093
producer:
# 写入失败时重试次数。当leader节点失效一个repli节点会替代成为leader节点此时可能出现写入失败
# 当retris为0时produce不会重复。retirs重发此时repli节点完全成为leader节点不会产生消息丢失。
retries: 0
#procedure要求leader在考虑完成请求之前收到的确认数用于控制发送记录在服务端的持久化其值可以为如下
#acks = 0 如果设置为零,则生产者将不会等待来自服务器的任何确认,该记录将立即添加到套接字缓冲区并视为已发送。在这种情况下,无法保证服务器已收到记录,并且重试配置将不会生效(因为客户端通常不会知道任何故障),为每条记录返回的偏移量始终设置为-1。
#acks = 1 这意味着leader会将记录写入其本地日志但无需等待所有副本服务器的完全确认即可做出回应在这种情况下如果leader在确认记录后立即失败但在将数据复制到所有的副本服务器之前则记录将会丢失。
#acks = all 这意味着leader将等待完整的同步副本集以确认记录这保证了只要至少一个同步副本服务器仍然存活记录就不会丢失这是最强有力的保证这相当于acks = -1的设置。
#可以设置的值为all, -1, 0, 1
acks: 1
consumer:
group-id: SmartCity
# smallest和largest才有效如果smallest重新0开始读取如果是largest从logfile的offset读取。一般情况下我们都是设置smallest
auto-offset-reset: earliest
# 设置自动提交offset
enable-auto-commit: true
# 如果'enable.auto.commit'为true则消费者偏移自动提交给Kafka的频率以毫秒为单位默认值为5000。
auto-commit-interval: 100
max-poll-records: 5
mybatis: mybatis:
config-location: classpath:mybatis/mybatis-config.xml config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath*:mybatis/mapper/**/*.xml mapper-locations: classpath*:mybatis/mapper/**/*.xml
@ -139,7 +80,7 @@ swagger:
# 文件上传管理 # 文件上传管理
file: file:
# 文件的保存路径 # 文件的保存路径
upload-path: C:\Users\cmxx0\Desktop\UploadFiles\ upload-path: /Users/wanggeng/Desktop/UploadFiles/
# 图片类型 # 图片类型
image-types: png,jpg,jpeg,gif,blob image-types: png,jpg,jpeg,gif,blob
# 视频类型 # 视频类型
@ -207,7 +148,7 @@ pay:
# 商户API证书序列号 # 商户API证书序列号
mch-no: 3492AF71B2FC29014997E16FF6499E27F7A0781B mch-no: 3492AF71B2FC29014997E16FF6499E27F7A0781B
# 私钥本地存储路径 # 私钥本地存储路径
private-key-path: D:\AH\apiclient_key.pem private-key-path: /Users/wanggeng/Develop/Java/TS-Projects/ai-engine/cret/wx-pay/apiclient_key.pem
# API v3密钥 # API v3密钥
api-v3-key: _TSKJ_0471_TSkj_0471_tsKJ_0471__ api-v3-key: _TSKJ_0471_TSkj_0471_tsKJ_0471__
# 小程序APPID # 小程序APPID