Commit 58be2aa9 by mushishixian

修改配置

parent e45de2b3
...@@ -25,4 +25,5 @@ cmd/cmd ...@@ -25,4 +25,5 @@ cmd/cmd
/cmd/dong/logs/*.log /cmd/dong/logs/*.log
server/server server/server
/sh /sh
/conf /conf/config.ini
/conf/config_production.ini
...@@ -14,6 +14,7 @@ base = http://192.168.2.232:40001 ...@@ -14,6 +14,7 @@ base = http://192.168.2.232:40001
goods = http://192.168.2.232:60004 goods = http://192.168.2.232:60004
upload = http://api.liexin.com/oss/upload upload = http://api.liexin.com/oss/upload
api_port = 60010 api_port = 60010
mode = debug
[oss] [oss]
upload_key = fh6y5t4rr351d2c3bryi upload_key = fh6y5t4rr351d2c3bryi
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
user_name = BomUserIc user_name = BomUserIc
password = mLssyDxmsymBomy password = mLssyDxmsymBomy
host = 172.18.137.21 host = 172.18.137.21
database = lie_bom database = liexin_bom
table_prefix = lie_ table_prefix = lie_
type = mysql type = mysql
...@@ -10,14 +10,13 @@ type = mysql ...@@ -10,14 +10,13 @@ type = mysql
url = "amqp://BomUxRbt:PLotqpzsozJwot@172.18.137.23:5672/" url = "amqp://BomUxRbt:PLotqpzsozJwot@172.18.137.23:5672/"
[api] [api]
base = http://192.168.2.232:40001
goods = http://192.168.2.232:60004
upload = http://api.liexin.com/oss/upload
api_port = 60010 api_port = 60010
mode = release
[oss] [oss]
upload_key = fh6y5t4rr351d2c3bryi upload_key = fh6y5t4rr351d2c3bryi
[es] [es]
url = http://172.18.137.29:9211 url = http://172.18.137.29:9211
urls = http://172.18.137.29:9211,172.18.137.30:9211
goods_index_name = future,rochester,tme,verical,element14,digikey,chip1stop,aipco,arrow,alliedelec,avnet,mouser,peigenesis,powell,rs,buerklin goods_index_name = future,rochester,tme,verical,element14,digikey,chip1stop,aipco,arrow,alliedelec,avnet,mouser,peigenesis,powell,rs,buerklin
\ No newline at end of file
...@@ -41,9 +41,10 @@ type RabbitMQ struct { ...@@ -41,9 +41,10 @@ type RabbitMQ struct {
} }
type Api struct { type Api struct {
Goods string `ini:"goods"` Goods string `ini:"goods"`
Upload string `ini:"upload"` Upload string `ini:"upload"`
ApiPort string `ini:"api_port"` ApiPort string `ini:"api_port"`
Mode string `ini:"mode"`
} }
type Oss struct { type Oss struct {
......
...@@ -8,6 +8,7 @@ import ( ...@@ -8,6 +8,7 @@ import (
) )
func InitRouter() *gin.Engine { func InitRouter() *gin.Engine {
gin.SetMode(configs.ApiSetting.Mode)
router := gin.Default() router := gin.Default()
router.POST("/bom/export", Export) router.POST("/bom/export", Export)
router.POST("/bom_matching/refresh", RefreshBomMatchingGoods) router.POST("/bom_matching/refresh", RefreshBomMatchingGoods)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment