正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -362,7 +362,7 @@ class SignController extends RestBaseController | @@ -362,7 +362,7 @@ class SignController extends RestBaseController | ||
362 | $param['bashBoard']=[$paramService->overplus($user['before_weight'],$user['height'])*0.2+$user['before_weight'],$paramService->overplus($user['before_weight'],$user['height'])*0.4+$user['before_weight'],$paramService->overplus($user['before_weight'],$user['height'])*0.6+$user['before_weight'],$paramService->overplus($user['before_weight'],$user['height'])*0.8+$user['before_weight']]; | 362 | $param['bashBoard']=[$paramService->overplus($user['before_weight'],$user['height'])*0.2+$user['before_weight'],$paramService->overplus($user['before_weight'],$user['height'])*0.4+$user['before_weight'],$paramService->overplus($user['before_weight'],$user['height'])*0.6+$user['before_weight'],$paramService->overplus($user['before_weight'],$user['height'])*0.8+$user['before_weight']]; |
363 | $param['day']=ceil((time()-$user['register_time'])/(60*60*24)); | 363 | $param['day']=ceil((time()-$user['register_time'])/(60*60*24)); |
364 | $param['pregnant_week']=$user['pregnant_week']; | 364 | $param['pregnant_week']=$user['pregnant_week']; |
365 | - $param['angle']=180*($user['now_weight']/($paramService->overplus($user['before_weight'],$user['height'])*0.2+$user['before_weight']*5)); | 365 | + $param['angle']=180*(($user['now_weight']-$user['before_weight'])/$paramService->overplus($user['before_weight'],$user['height'])); |
366 | //返回 | 366 | //返回 |
367 | $this->success('周打卡信息',array( | 367 | $this->success('周打卡信息',array( |
368 | 'param'=>$param, | 368 | 'param'=>$param, |
-
请 注册 或 登录 后发表评论