This commit is contained in:
Jiang Yong 2023-10-06 13:14:51 +08:00
parent 7758857fba
commit 20382e133a
2 changed files with 41 additions and 0 deletions

View File

@ -24,6 +24,7 @@ func main3() {
config.LoadServerConfig() config.LoadServerConfig()
global.InitGlobal() global.InitGlobal()
//cfg := config.GetConfig() //cfg := config.GetConfig()
worker.SyncStaffInfo()
worker.SyncStaffSalary("") worker.SyncStaffSalary("")
} }

40
conf/server.conf.mac Normal file
View File

@ -0,0 +1,40 @@
[server]
address = "0.0.0.0:9283"
#0:PAINC 1:FATAL 2:ERROR 3:WARNING 4:INFO 5:DEBUG 6:TRACE
log_level = 6
[mysql]
host = "100.100.199.74"
port = 3307
user = "root"
pass = "ZW5aaGVuMIIBIj"
db = "enterprise"
[redis]
addr="127.0.0.1:6379"
db=0
password=""
[qyweixin]
corpid = "ww43c49db2e88a17f8"
hr_agent = "3010185"
hr_secret = "Ko2UQWZPbdM9N1snukp_1CT_3J7CcReyPAzl3ww2xoo"
enterprise_agent = "1000009"
enterprise_secret = "oMB24UhKe50-XPTg7vhnwoTuhEXaq5XeiHPAUtF4hOs"
approve_agent = "3010040"
approve_secret = "xJOClC5V2pPon1azgrAzf5kq1TB72xZ3ScR7O5G3lQo"
checkin_agent = "3010011"
checkin_secret = "6ljYNGt4DonZLmr9SCtgkTlOvtqmsOchBrTWwGl_GpU"
checkin_group = "1,2"
checkin_pay_thresold = 11
pay_secret = "JCGsxntR4E7wrEEQvWGr8_wdKtRlw48n-W6zd8lbwc4"
pay_agent = "3010046"
[wxpay]
pay_key_pem = "conf/wxpay/apiclient_key.pem"
pay_cert_pem = "conf/wxpay/apiclient_cert.pem"
pay_mchid = "1644152531"
pay_serial_number = "32933D9C64A63985F96DC26FD714D7B1EFAE682F"
pay_api_key_v3 = "fe84a99b2fcc2e393b19f37792ee2cd1"
pay_api_key_v2 = "fe84a99b2fcc2e393b19f37792ee2cd1"