From 6b863cf16df5635ea2434283c729d46366009a32 Mon Sep 17 00:00:00 2001 From: zhangxin Date: Thu, 10 Feb 2022 16:29:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/config.go | 14 +++++++++++--- conf/config.yaml | 14 ++++++++++++-- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/conf/config.go b/conf/config.go index 3d5687c..59c3884 100644 --- a/conf/config.go +++ b/conf/config.go @@ -8,6 +8,7 @@ import ( var DbConfig *EnvConfig type EnvConfig struct { + Project string `yaml:"project"` Finr int `yaml:"finr"` Mongdbname string `yaml:"mongdbname"` Mongdbip string `yaml:"mongdbip"` @@ -28,11 +29,18 @@ type EnvConfig struct { PortalPostFileUrl string `yaml:"portalpostfileurl"` PortalCachePostFileUrl string `yaml:"portalcachepostfileurl"` PortalHost string `yaml:"portalhost"` - Proxy string `yaml:"proxy"` - PLCBackend string `yaml:"plcbackend"` - PLCStep1DB string `yaml:"plcstep1db"` + Proxy string `yaml:"proxy"` + PLCWriteBackend string `yaml:"plcwritebackend"` + PLCReadBackend string `yaml:"plcreadbackend"` + PLCStep1DB string `yaml:"plcstep1db"` PLCStep2DB string `yaml:"plcstep2db"` PLCStep3DB string `yaml:"plcstep3db"` + // 南沙工厂座椅下线的PLC地址位 + OfflineDBSign string `yaml:"offlinedbsign"` + OfflineDBSave string `yaml:"offlinedbdata"` + OfflinePLCType string `yaml:"offlineplctype"` + OfflinePLCAddress string `yaml:"offlineplcaddress"` + OfflinePLCRetry int `yaml:"offlineplcretry"` } //read yaml config diff --git a/conf/config.yaml b/conf/config.yaml index 3f250ed..e174fb0 100644 --- a/conf/config.yaml +++ b/conf/config.yaml @@ -6,7 +6,7 @@ mongdbname: LAPP_ACURA_MOM mongdbip: 127.0.0.1 mongdbport: 27017 -plcbackend: http://10.122.64.96:9009/ + # sqlserver 数据库配置参数 masterdbdrivername: mssql @@ -32,4 +32,14 @@ portalgettimeurl: http://8.134.81.220:8097/admin/log/artdemandhead/selectlastmod portalpostfileurl: http://8.134.81.220:8097/admin/log/artdemandlst/synchronous portalcachepostfileurl: http://8.134.81.220:8097/admin/log/artdemandlst/synchronouscache portalhost: 8.134.81.220:8097 -proxy: http://10.10.5.18:8080 \ No newline at end of file +proxy: http://10.10.5.18:8080 +# 项目ID: +project: nansha +# 南沙座椅下线PLC地址 +plcwritebackend: http://10.122.64.96:9009/ +plcreadbackend: http://10.122.64.96:9009/ +offlineplctype: S1500 +offlineplcaddress: 10.207.0.3 +offlinedbsign: DB2.0.0 +offlinedbdata: DB2.B2.50 +offlineplcretry: 2 \ No newline at end of file