正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -315,10 +315,10 @@ class SignController extends RestBaseController | @@ -315,10 +315,10 @@ class SignController extends RestBaseController | ||
315 | $paramService=new ParamService(); | 315 | $paramService=new ParamService(); |
316 | if (!$re){ | 316 | if (!$re){ |
317 | $param['weight']=$user['now_weight']; | 317 | $param['weight']=$user['now_weight']; |
318 | - $param['status']=$paramService->status($user['before_weight'],$user['height']); | 318 | +// $param['status']=$paramService->status($user['before_weight'],$user['height']); |
319 | $param['increase']=$user['now_weight']-$user['before_weight']; | 319 | $param['increase']=$user['now_weight']-$user['before_weight']; |
320 | $param['overplus']=$paramService->overplus($user['before_weight'],$user['height'])-($user['now_weight']-$user['before_weight']); | 320 | $param['overplus']=$paramService->overplus($user['before_weight'],$user['height'])-($user['now_weight']-$user['before_weight']); |
321 | - $record=['day'=>ceil((time()-$user['register_time'])/(60*60*24)),'weight'=> $param['weight'],'status'=>$param['status']]; | 321 | + $record=['day'=>ceil((time()-$user['register_time'])/(60*60*24)),'weight'=> $param['weight'],'status'=>$paramService->status($user['before_weight'],$user['height'])]; |
322 | }else{ | 322 | }else{ |
323 | $param['weight']=$re['weight']; | 323 | $param['weight']=$re['weight']; |
324 | $param['increase']=$re['weight']-$user['before_weight']; | 324 | $param['increase']=$re['weight']-$user['before_weight']; |
-
请 注册 或 登录 后发表评论