作者 lihan
1 个管道 的构建 通过 耗费 28 秒

赠送积分和角色管理

@@ -78,8 +78,10 @@ class ZjOrderController extends AdminBaseController @@ -78,8 +78,10 @@ class ZjOrderController extends AdminBaseController
78 $whole = 0; 78 $whole = 0;
79 $whole_num = 0; 79 $whole_num = 0;
80 foreach ($all as $item) { 80 foreach ($all as $item) {
81 - $whole+=$item['whole'];  
82 - $whole_num+=$item['whole_num']; 81 + if($item['step'] > 1) {
  82 + $whole += $item['whole'];
  83 + $whole_num += $item['whole_num'];
  84 + }
83 } 85 }
84 $total = $whole - $whole_num; 86 $total = $whole - $whole_num;
85 $this->assign('start_time', !empty($arr['start_time']) ? $arr['start_time'] : ''); 87 $this->assign('start_time', !empty($arr['start_time']) ? $arr['start_time'] : '');