application/admin/controller/consum/Setting.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
* 易想会员管理营销系统
* =========================================================
* 天津市华易动力信息科技有限公司 , 保留所有权利。
* ----------------------------------------------
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
* 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
* =========================================================
* @author : hy_team
* @date : 2019-08-10
*/
namespace app\admin\controller\consum;
use app\common\controller\Common;
use app\common\model\Coupon;
use app\common\model\CouponMember;
use app\common\service\Coupon as CouponService;
/**
* 消费券设置
*/
class Setting extends Common
{
public function index()
{
cookie('hysc_jumpUrl',$this->request->url());
$list = (new CouponService)->get_coupon(2);
$this->assign('list',$list);
$this->assign('caption','消费券');
$this->assign('type',2);
return view('./template/admin/coupon/setting_index.html');
}
public function add()
{
if ($this->request->isPost()) {
if (check_form_token()) {
$data = $this->request->post();
$res = (new CouponService)->add_coupon($data);
if ($res == true) {
$this->success('增加消费券成功',cookie('hysc_jumpUrl'));
}else{
$this->error($res);
}
}
}
$this->assign('caption','消费券');
$this->assign('type',2);
return view('./template/admin/coupon/setting_add.html');
}
public function update()
{
$id = $this->request->param('id');
//获得会员领取总张数
$memberCouponNum = CouponMember::where('coupon_id',$id)->count();
$item = Coupon::where('id',$id)->find();
if ($this->request->isPost()) {
if (check_form_token()) {
$data = $this->request->post();
后面还有 37 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。