edit-sylive-plan

This commit is contained in:
lccsw
2022-11-04 10:35:25 +08:00
parent 6e6970ef97
commit d7fb62cb69
2 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -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)."<br>";
}
+3 -2
View File
@@ -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;