作者 sgj
1 个管道 的构建 失败 耗费 0 秒

工作时长

@@ -1180,6 +1180,7 @@ class SecondController extends RestBaseController @@ -1180,6 +1180,7 @@ class SecondController extends RestBaseController
1180 foreach ($info as $k=>$v){ 1180 foreach ($info as $k=>$v){
1181 $info[$k]['start_time']=date('Y-m-d',$v['start_time']); 1181 $info[$k]['start_time']=date('Y-m-d',$v['start_time']);
1182 $info[$k]['end_time']=date('Y-m-d',$v['end_time']); 1182 $info[$k]['end_time']=date('Y-m-d',$v['end_time']);
  1183 + $info[$k]['work_time']=db('join')->where(['activity_id'=>$v['id'],'user_id'=>$user_id])->value('work_time');
1183 } 1184 }
1184 $this->success('',$info); 1185 $this->success('',$info);
1185 } 1186 }