正在显示
1 个修改的文件
包含
2 行增加
和
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 | } |
-
请 注册 或 登录 后发表评论