- fixed new order msg bug.

This commit is contained in:
gazebo
2018-06-18 16:00:03 +08:00
parent c6c14b1037
commit 861326c4eb
2 changed files with 25 additions and 23 deletions

View File

@@ -91,10 +91,13 @@ func (f *FreshFoodAPI) AccessFreshFood(apiStr string, params url.Values) error {
// _, err := f.client.PostForm(fullURL, params)
err = error(nil)
f.sugarLogger.Debug(fullURL)
if err != nil {
f.sugarLogger.Warnf("Call %s error:%v", fullURL, err)
if err == nil {
break
}
}
if err != nil {
f.sugarLogger.Warnf("Call %s error:%v", fullURL, err)
}
return err
}