feat: 装配线看板修正、统一密钥Hardman_2026、操作日志追溯、日志按天存储
Dashboard 移除 CNC/清洗机等不存在设备,改为纯装配线看板(扫码枪+拧紧枪+人工);JWT/内部token统一为 Hardman_2026 写入各 etc/*.yaml,MES 建表 DSN 改读 yaml;event_log 增加 workOrderNo/operator,BOM/备料/PLC下发/拧紧/扫码报工/半成品/AGV 全链路埋点,日志页支持工单号/操作人筛选;MES/WMS 日志按天存储(dailyWriter),WMS SetWriter 用 logx.NewWriter 适配
This commit is contained in:
@@ -4,14 +4,14 @@ Port: 8892
|
||||
Timeout: 30000
|
||||
|
||||
Auth:
|
||||
AccessSecret: bj-power-ws-secret-2026
|
||||
AccessSecret: Hardman_2026
|
||||
AccessExpire: 1800
|
||||
|
||||
Mes:
|
||||
BaseURL: http://127.0.0.1:8888
|
||||
|
||||
Internal:
|
||||
Token: bj-power-internal-2026
|
||||
Token: Hardman_2026
|
||||
|
||||
Sim:
|
||||
Enable: true
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
// AuthConfig JWT 登录鉴权配置
|
||||
// 注意:go-zero conf 仅识别 json 标签(yaml/toml 文件统一转为 JSON 后按此映射)
|
||||
type AuthConfig struct {
|
||||
AccessSecret string `json:",default=bj-power-ws-secret-2026"`
|
||||
AccessSecret string `json:",default=Hardman_2026"`
|
||||
AccessExpire int64 `json:",default=1800"` // 有效期(秒)
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ type MesConfig struct {
|
||||
|
||||
// InternalConfig 项目间内部 API 写死 token(X-API-TOKEN)
|
||||
type InternalConfig struct {
|
||||
Token string `json:",default=bj-power-internal-2026"`
|
||||
Token string `json:",default=Hardman_2026"`
|
||||
}
|
||||
|
||||
// SimConfig 内置模拟拧紧枪数据源开关
|
||||
|
||||
Reference in New Issue
Block a user