作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

接口

@@ -395,7 +395,7 @@ class SignController extends RestBaseController @@ -395,7 +395,7 @@ class SignController extends RestBaseController
395 $data=Db::name('user_week_sign')->where('user_id',$this->getUserId())->select()->toArray(); 395 $data=Db::name('user_week_sign')->where('user_id',$this->getUserId())->select()->toArray();
396 foreach ($data as $k=>$v){ 396 foreach ($data as $k=>$v){
397 $data[$k]['week']=ceil(($data[$k]['create_time'] - $user['register_time'])/(7*24*60*60)); 397 $data[$k]['week']=ceil(($data[$k]['create_time'] - $user['register_time'])/(7*24*60*60));
398 - $data[$k]['week_time']=date('Y-m-d',strtotime('+'.$data[$k]['week'].' week',$data[$k]['create_time'])); 398 + $data[$k]['week_time']=date('m-d',strtotime('+'.$data[$k]['week'].' week',$data[$k]['create_time']));
399 } 399 }
400 //返回 400 //返回
401 $this->success('周打卡提交成功',[$param,$data]); 401 $this->success('周打卡提交成功',[$param,$data]);