|
@@ -70,11 +70,8 @@ class RedpacketActiveReward extends Auth{
|
|
|
$maxProbability = 100 - (int) $Model->query()->where([['active_id','=',$activeId]])->sum('probability');
|
|
|
// 获取列表
|
|
|
$activeList = $RedpacketActive->query()->get(['id','name'])->toArray();
|
|
|
- // 奖品类型
|
|
|
- $typeList = $Model->getRewardTypeList();
|
|
|
// 分配数据
|
|
|
$this->assign('crumbs','新增');
|
|
|
- $this->assign('typeList',$typeList);
|
|
|
$this->assign('activeList',$activeList);
|
|
|
$this->assign('maxProbability',$maxProbability);
|
|
|
// 加载模板
|
|
@@ -115,12 +112,9 @@ class RedpacketActiveReward extends Auth{
|
|
|
$maxProbability = 100 - ((int) $Model->query()->where([['active_id','=',$oldData['active_id']]])->sum('probability')) + $oldData['probability'];
|
|
|
// 获取列表
|
|
|
$activeList = $RedpacketActive->query()->get(['id','name'])->toArray();
|
|
|
- // 奖品类型
|
|
|
- $typeList = $Model->getRewardTypeList();
|
|
|
// 数据分配
|
|
|
$this->assign('crumbs','修改');
|
|
|
$this->assign('oldData',$oldData);
|
|
|
- $this->assign('typeList',$typeList);
|
|
|
$this->assign('activeList',$activeList);
|
|
|
$this->assign('maxProbability',$maxProbability);
|
|
|
// 加载模板
|