This commit is contained in:
苏尹岚
2021-03-10 10:10:55 +08:00
parent 89d722c729
commit 493f2ba97b
5 changed files with 37 additions and 9 deletions

View File

@@ -340,5 +340,10 @@ func (c *PurchaseHandler) SyncAct(ctx *jxcontext.Context, parentTask tasksch.ITa
}
func (c *PurchaseHandler) GetActAmple(ctx *jxcontext.Context, vendorStoreID, vendorOrgCode string) (ample int, err error) {
for _, v := range ebaiapi.ActivityTypeList {
if actIDs, err := api.EbaiAPI.ActMultiChannelQueryIDs("", utils.Str2Int64(vendorStoreID), v); err == nil && len(actIDs) > 0 {
ample++
}
}
return ample, err
}