From 911c6d83cefaae1282bbbe71bac8925658a89ec5 Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 11 Apr 2019 14:54:01 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E5=8F=AA=E5=9C=A8prod=E6=97=B6=E5=81=9A?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E4=B8=8E=E5=B7=AE=E8=AF=84=E5=88=B7?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/app.conf | 3 +++ main.go | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/conf/app.conf b/conf/app.conf index d8912957b..92663eca7 100644 --- a/conf/app.conf +++ b/conf/app.conf @@ -235,7 +235,10 @@ weixinAppID = "wxbf235770edaabc5c" weixinSecret = "ba32b269a068a5b72486a0beafd171e8" dbConnectStr = "root:WebServer@1@tcp(127.0.0.1:3306)/jxstore_alpha?charset=utf8mb4&loc=Local&parseTime=true" + enableStoreWrite = true +enableEbaiStoreWrite = true +enableMtwmStoreWrite = true enableWscStoreWrite = true [beta] diff --git a/main.go b/main.go index 55f8e3120..c9a3957ef 100644 --- a/main.go +++ b/main.go @@ -46,8 +46,11 @@ func Init() { } cms.InitServiceInfo(Version, buildTime, GitCommit) promotion.Init() - misc.StartRefreshEbaiRealMobile() - ebai.CurPurchaseHandler.StartRefreshComment() + + if beego.BConfig.RunMode == "prod" { + misc.StartRefreshEbaiRealMobile() + ebai.CurPurchaseHandler.StartRefreshComment() + } } // 返回true表示非运行服务