修改自动推广的相关任务

This commit is contained in:
wangjinlei
2026-04-23 11:37:49 +08:00
parent 5f724217c0
commit 48b2335063
3 changed files with 31 additions and 9 deletions

View File

@@ -221,7 +221,7 @@ class PromotionFactory extends Base
return jsonError('Factory not found');
}
Db::name('promotion_factory')->where('promotion_factory_id', $id)->update(['state' => 1]);
Db::name('promotion_factory')->where('promotion_factory_id', $id)->delete();
return jsonSuccess([]);
}