request->isAjax()){ $post = $this->request->post(); MarketingConfigLogic::setConfig($post); return $this->_success('设置成功',[]); } $this->assign('config',MarketingConfigLogic::getConfig(['invited_award_integral'])); return $this->fetch(); } /** * note 下单奖励 * create_time 2020/12/2 16:19 */ public function orderAwardConfig(){ if($this->request->isAjax()){ $post = $this->request->post(); MarketingConfigLogic::setConfig($post); return $this->_success('设置成功',[]); } $this->assign('config',MarketingConfigLogic::getConfig(['order_award_integral'])); return $this->fetch(); } /** * note 会员注册 * create_time 2020/12/2 16:22 */ public function registerAwardConfig(){ if($this->request->isAjax()){ $post = $this->request->post(); MarketingConfigLogic::setConfig($post); return $this->_success('设置成功',[]); } $config = [ 'register_award_integral_status', 'register_award_integral', 'register_award_coupon_status', 'register_award_coupon', ]; $this->assign('config',MarketingConfigLogic::getConfig($config)); $this->assign('coupon_list',MarketingConfigLogic::getCouponList()); return $this->fetch(); } /** * Notes: 积分抵扣 * @author 松鼠 * @return mixed */ public function integralDeduction() { if($this->request->isAjax()){ $post = $this->request->post(); MarketingConfigLogic::setConfig($post); $this->_success('设置成功',[]); } $config = [ 'integral_deduction_status',//积分抵扣状态 'integral_deduction_money',//积分抵扣比例 'integral_deduction_limit',//积分使用需超过多少才可使用 ]; $this->assign('config',MarketingConfigLogic::getConfig($config)); return $this->fetch(); } }