Authored by wuxiao

接口强制转换starting_time为数字

@@ -36,7 +36,7 @@ class LivingController extends BaseController @@ -36,7 +36,7 @@ class LivingController extends BaseController
36 'title'=>$model->title, 36 'title'=>$model->title,
37 'pic'=>CommonImages::getTemplateComplex($model->pic, 2), 37 'pic'=>CommonImages::getTemplateComplex($model->pic, 2),
38 'living'=>$model->living, 38 'living'=>$model->living,
39 - 'starting_time'=>$model->starting_time, 39 + 'starting_time'=>(int)$model->starting_time,
40 ]; 40 ];
41 $ret[$k] = $row; 41 $ret[$k] = $row;
42 } 42 }
@@ -129,7 +129,7 @@ class LivingController extends BaseController @@ -129,7 +129,7 @@ class LivingController extends BaseController
129 'master_meta'=>$model->master->meta, 129 'master_meta'=>$model->master->meta,
130 'title'=>$model->title, 130 'title'=>$model->title,
131 'pic'=>CommonImages::getTemplateComplex($model->pic, 2), 131 'pic'=>CommonImages::getTemplateComplex($model->pic, 2),
132 - 'starting_time'=>$model->starting_time, 132 + 'starting_time'=>(int)$model->starting_time,
133 ]; 133 ];
134 $ret[$k] = $row; 134 $ret[$k] = $row;
135 } 135 }
@@ -221,7 +221,7 @@ class LivingController extends BaseController @@ -221,7 +221,7 @@ class LivingController extends BaseController
221 'like_num'=>0, 221 'like_num'=>0,
222 'audience_num'=>0,//在线人数 222 'audience_num'=>0,//在线人数
223 'live_start_time'=>0, 223 'live_start_time'=>0,
224 - 'starting_time'=>$model->starting_time,//预告时间 224 + 'starting_time'=>(int)$model->starting_time,//预告时间
225 'rtmp_downstream_address'=>'', 225 'rtmp_downstream_address'=>'',
226 'flv_downstream_address'=>'', 226 'flv_downstream_address'=>'',
227 'hls_downstream_address'=>'', 227 'hls_downstream_address'=>'',