修改自动推广的相关任务
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user