Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
scm_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fe3a7b9d
authored
May 15, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
忽略
parent
3b26bc2c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
10 deletions
.gitignore
conf/config.ini
main.go
.gitignore
View file @
fe3a7b9d
...
...
@@ -8,7 +8,6 @@ scm_server
*.iml
*.exe
/logs
/conf/config.ini
/components
/storage/app
/storage/framework
...
...
conf/config.ini
0 → 100644
View file @
fe3a7b9d
[mysql]
username
=
root
password
=
root
host
=
192.168.2.250
database
=
lie_scm_wms_sync
[rabbitmq]
url
=
"amqp://huntadmin:jy2y2900@192.168.1.237:5672/"
[api]
base
=
http://192.168.2.232:40001
out_store
=
http://192.168.2.232:40003
in_store
=
http://192.168.2.232:40004
erp_sync_base_data_status
=
http://192.168.2.253:6888/ormrpc/services/WSInventoryManagementFacade?wsdl
erp_sync_bill_status
=
http://192.168.2.253:6888/ormrpc/services/WSInventoryManagementFacade?wsdl
erp_login_status
=
http://192.168.2.253:6888/ormrpc/services/EASLogin?wsdl
[falcon]
push_url
=
http://192.168.1.237:1988/v1/push
[erp]
userName
=
WBYH
password
=
123456
slnName
=
eas
dcName
=
demo
language
=
L2
dbType
=
1
authPattern
=
BaseDB
main.go
View file @
fe3a7b9d
package
main
import
(
"flag"
"scm_server/cmd/queue/sync_audit_status"
"scm_server/cmd/queue/sync_customer"
"scm_server/cmd/queue/sync_goods"
...
...
@@ -53,15 +52,15 @@ func pushAlive() {
}
}
var
(
ConfFile
string
// 配置文件路径
)
//
var (
//
ConfFile string // 配置文件路径
//
)
func
init
()
{
// master -config ./conf/config.ini
flag
.
StringVar
(
&
ConfFile
,
"config"
,
"./conf/config.ini"
,
"./conf/config.ini"
)
flag
.
Parse
()
}
//
func init() {
//
// master -config ./conf/config.ini
//
flag.StringVar(&ConfFile, "config", "./conf/config.ini", "./conf/config.ini")
//
flag.Parse()
//
}
func
main
()
{
go
sync_customer
.
Sync
()
...
...
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