|
|
@@ -14,7 +14,7 @@ func NewTaobaoSDK(eg *xorm.Engine, dbName, Platform string, AccTaobaoShareId int |
|
|
|
// 从联盟设置中获取淘宝配置 |
|
|
|
var taobaoCfg *model.SysUnionSet |
|
|
|
var err error |
|
|
|
if UnionId != "" { |
|
|
|
if zhios_third_party_utils.StrToInt(UnionId) > 0 { |
|
|
|
taobaoCfg = db.SysUnionById(eg, UnionId) |
|
|
|
} else { |
|
|
|
taobaoCfg, err = db.SysUnionByTaobaoByUseByAuth(eg, dbName) |
|
|
|