mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-01 19:41:51 +08:00
feat: make task global asset sharing opt-in
This commit is contained in:
1 parent
d36e1c3295
commit
080a46eb2d
25 files changed
+838
-328
No files matched your search
+1
-1
@@ -398,7 +398,7 @@ func (w *Worker) execute(ctx context.Context, name string, taskID int64, as *db.
|
||||
sysBody += renderIntentTask(intent)
|
||||
if as != nil {
|
||||
if ids := intentAssetIDs(intent); len(ids) > 0 {
|
||||
if assets, err := as.GetByIDs(ids); err == nil && len(assets) > 0 {
|
||||
if assets, err := as.GetByIDsInScope(taskID, ids); err == nil && len(assets) > 0 {
|
||||
if b, err := json.Marshal(assets); err == nil {
|
||||
sysBody += "\n\n本意图 asset_ids 对应的目标资产:\n" + string(b)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user