This commit is contained in:
gazebo
2020-01-07 09:50:47 +08:00
parent 4a394a60eb
commit 901b45690d
2 changed files with 1 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ func GetSysConfigAsInt64(db *DaoDB, key string) (value int64, err error) {
configList, err := QueryConfigs(db, key, model.ConfigTypeSys, "")
if err == nil && len(configList) > 0 {
value = utils.Str2Int64WithDefault(configList[0].Value, 0)
} else if IsNoRowsError(err) {
} else if true { //IsNoRowsError(err) { // todo 暂时忽略所有错误
err = nil
}
return value, err

View File

@@ -298,8 +298,6 @@ func (c *PurchaseHandler) UpdateStoreBoxFee(ctx *jxcontext.Context, vendorOrgCod
if globals.EnableMtwmStoreWrite {
err = api.MtwmAPI.PackagePriceUpdate(vendorStoreID, 1, int(boxFee))
}
} else if dao.IsNoRowsError(err) {
err = nil
}
return err
}