修改自动推广的相关任务

This commit is contained in:
wangjinlei
2026-04-22 18:15:09 +08:00
parent f1fad67f76
commit 5f724217c0
2 changed files with 122 additions and 99 deletions

View File

@@ -133,6 +133,19 @@ class PromotionFactory extends Base
return jsonSuccess(['promotion_factory_id' => $id]);
}
public function changePromotionAct(){
$data = $this->request->post();
$rule = new Validate([
"promotion_factory_id"=>"require",
"start_promotion"=>"require"
]);
if(!$rule->check($data)){
return jsonError($rule->getError());
}
Db::name("promotion_factory")->where("promotion_factory_id",$data['promotion_factory_id'])->update(['start_promotion'=>$data['start_promotion']]);
return jsonSuccess();
}
public function getCountForPromotionEmailIds(){
$data = $this->request->post();
$rule = new Validate([