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

接口

... ... @@ -362,7 +362,7 @@ class SignController extends RestBaseController
$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']];
$param['day']=ceil((time()-$user['register_time'])/(60*60*24));
$param['pregnant_week']=$user['pregnant_week'];
$param['angle']=180*($user['now_weight']/($paramService->overplus($user['before_weight'],$user['height'])*0.2+$user['before_weight']*5));
$param['angle']=180*(($user['now_weight']-$user['before_weight'])/$paramService->overplus($user['before_weight'],$user['height']));
//返回
$this->success('周打卡信息',array(
'param'=>$param,
... ...