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

修改意见

@@ -429,7 +429,7 @@ class SignController extends RestBaseController @@ -429,7 +429,7 @@ class SignController extends RestBaseController
429 $xiaxian=[]; 429 $xiaxian=[];
430 foreach ($data as $k=>$v){ 430 foreach ($data as $k=>$v){
431 $data[$k]['week']=ceil(($data[$k]['create_time'] - $user['register_time'])/(7*24*60*60)); 431 $data[$k]['week']=ceil(($data[$k]['create_time'] - $user['register_time'])/(7*24*60*60));
432 - $data[$k]['week_time']=date('m-d',strtotime('+'.$data[$k]['week'].' week',$data[$k]['create_time'])); 432 + $data[$k]['week_time']=date('m-d',strtotime('+'.$data[$k]['week'].' week',$user['register_time']));
433 if ($user['pregnant_week']+$data[$k]['week']<=12){ 433 if ($user['pregnant_week']+$data[$k]['week']<=12){
434 array_push($shangxian,$user['before_weight']+2); 434 array_push($shangxian,$user['before_weight']+2);
435 array_push($xiaxian,$user['before_weight']+0.5); 435 array_push($xiaxian,$user['before_weight']+0.5);