assistcreatefence
This commit is contained in:
@@ -6014,3 +6014,16 @@ func GetVendorOrgCode(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendorID i
|
||||
}
|
||||
return storeMap, dao.GetEntitiesByKV(db, &storeMap, cond, false)
|
||||
}
|
||||
|
||||
//辅助创建电子围栏
|
||||
func AssistCreateFence(appOrgCode string, storeID int64) error {
|
||||
//创建前检查 暂时不支持
|
||||
if fenceID, err := tiktok_store.CreateFenceByStore(appOrgCode, storeID); err != nil {
|
||||
return errors.New(fmt.Sprintf("创建电子围栏失败:%v", err))
|
||||
} else {
|
||||
if err := tiktok_store.BindFenceByStore(appOrgCode, storeID, []string{fenceID}); err != nil {
|
||||
return errors.New(fmt.Sprintf("绑定电子围栏失败:%v", err))
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user