diff --git a/api/controllers/plan/Syt.php b/api/controllers/plan/Syt.php index ce66ac25..0cbe2652 100644 --- a/api/controllers/plan/Syt.php +++ b/api/controllers/plan/Syt.php @@ -400,9 +400,9 @@ class Syt extends CI_Controller $area_id && $update['areaId'] = $area_id; $biz_id && $update['bizId'] = $biz_id; $browse && $update['browse'] = $browse; - $subscribe && $update['subscribe'] = $browse; - $orderTotal && $update['orderTotal'] = $browse; - $watch && $update['watch'] = $browse; + $subscribe && $update['subscribe'] = $subscribe; + $orderTotal && $update['orderTotal'] = $orderTotal; + $watch && $update['watch'] = $watch; $this->act_user_model->update($update,['userId'=>$item['userId']]); echo "用户id:{$item['userId']}更新成功:".json_encode($update,JSON_UNESCAPED_UNICODE)."
"; } diff --git a/home/controllers/h5/market/sylive/Stic.php b/home/controllers/h5/market/sylive/Stic.php index 17df275e..f2ddab1b 100644 --- a/home/controllers/h5/market/sylive/Stic.php +++ b/home/controllers/h5/market/sylive/Stic.php @@ -65,8 +65,9 @@ class Stic extends Admin{ $h_title .= $b_row['organizationName']; } $day_list = ['全部']; - for($i=0;$i<9;$i++){ - $day_list[] = date('Y-m-d',strtotime("-{$i} day")); + $timeEnd = strtotime($row['timeEnd']);//直播结束往前七天 + for($i=0;$i<8;$i++){ + $day_list[] = date('Y-m-d',$timeEnd - $i*24*60*60); } $this->data['day_list'] = $day_list; $this->data['h_title'] = $h_title;