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

个人中心接口

@@ -250,7 +250,7 @@ class SignController extends RestBaseController @@ -250,7 +250,7 @@ class SignController extends RestBaseController
250 $param['status']=$paramService->status($user['before_weight'],$user['height']); 250 $param['status']=$paramService->status($user['before_weight'],$user['height']);
251 $param['increase']=0; 251 $param['increase']=0;
252 $param['overplus']=$paramService->overplus($user['before_weight'],$user['height']); 252 $param['overplus']=$paramService->overplus($user['before_weight'],$user['height']);
253 - $record=[]; 253 + $record=['day'=>ceil((time()-$user['register_time'])/(60*60*21)),'weight'=> $param['weight'],'status'=>$param['status']];
254 }else{ 254 }else{
255 $param['weight']=$re['weight']; 255 $param['weight']=$re['weight'];
256 $param['increase']=$re['weight']-$user['before_weight']; 256 $param['increase']=$re['weight']-$user['before_weight'];
@@ -267,6 +267,7 @@ class SignController extends RestBaseController @@ -267,6 +267,7 @@ class SignController extends RestBaseController
267 elseif ($item['status']==4){ 267 elseif ($item['status']==4){
268 $item['status']='超重'; 268 $item['status']='超重';
269 } 269 }
  270 + $item['day']=ceil((time()-$item['register_time'])/(60*60*21));
270 return $item; 271 return $item;
271 }); 272 });
272 } 273 }