提交 241664fa 编写于 作者: 雨爱无痕

Fix issue

上级 0ba2c1b7
...@@ -80,7 +80,12 @@ func (s *SiteService) Update(site model.Site) (isDuplicate bool, err error) { ...@@ -80,7 +80,12 @@ func (s *SiteService) Update(site model.Site) (isDuplicate bool, err error) {
config := configHelper.LoadBySite(site) config := configHelper.LoadBySite(site)
err = zentaoHelper.Login(config) err = zentaoHelper.Login(config)
if err != nil { if err != nil {
return config.Url += "zentao/"
site.Url += "zentao/"
err = zentaoHelper.Login(config)
if err != nil {
return
}
} }
isDuplicate, err = s.SiteRepo.Update(site) isDuplicate, err = s.SiteRepo.Update(site)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册