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

接口

@@ -359,7 +359,7 @@ class SignController extends RestBaseController @@ -359,7 +359,7 @@ class SignController extends RestBaseController
359 return $item; 359 return $item;
360 }); 360 });
361 } 361 }
362 - $param['bashBoard']=[$param['overplus']*0.2+$user['before_weight'],$param['overplus']*0.4+$user['before_weight'],$param['overplus']*0.6+$user['before_weight'],$param['overplus']*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 //返回 365 //返回