Browse Source

金蝶更新

pull/94/head
yehongyang 3 years ago
parent
commit
2939e5be4c
2 changed files with 5 additions and 1 deletions
  1. +2
    -1
      task/k3cloud.go
  2. +3
    -0
      utils/k3cloud.go

+ 2
- 1
task/k3cloud.go View File

@ -27,7 +27,8 @@ func TaskInit() {
utils.K3configTestInit() utils.K3configTestInit()
for true { for true {
oneTask(time.Time{}) oneTask(time.Time{})
time.Sleep(time.Hour * 1)
//time.Sleep(time.Hour * 1)
time.Sleep(time.Minute * 5)
} }
} }


+ 3
- 0
utils/k3cloud.go View File

@ -17,6 +17,7 @@ type K3config struct {
session *util.Browser session *util.Browser
K3Response response.K3ResponseStruct K3Response response.K3ResponseStruct
FUseOrgId string `json:"FUseOrgId1"` FUseOrgId string `json:"FUseOrgId1"`
FUseOrgNo string `json:"FUseOrgId1"`
} }
var K3Obj *K3config var K3Obj *K3config
@ -36,6 +37,7 @@ func K3configTestInit() {
k3config.LcID = 2052 k3config.LcID = 2052
k3config.FUseOrgId = "1" k3config.FUseOrgId = "1"
k3config.session = util.NewBrowser() k3config.session = util.NewBrowser()
k3config.FUseOrgNo = "100"
k3config.Login() k3config.Login()
K3Obj = k3config K3Obj = k3config
} }
@ -55,6 +57,7 @@ func K3configInit() {
k3config.LcID = 2052 k3config.LcID = 2052
k3config.FUseOrgId = "1" k3config.FUseOrgId = "1"
k3config.session = util.NewBrowser() k3config.session = util.NewBrowser()
k3config.FUseOrgNo = "100"
k3config.Login() k3config.Login()
K3Obj = k3config K3Obj = k3config
} }


Loading…
Cancel
Save