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

接口

... ... @@ -311,7 +311,7 @@ class SignController extends RestBaseController
$param['increase']=$user['now_weight']-$user['before_weight'];
$param['overplus']=$paramService->overplus($user['before_weight'],$user['height']);
$param['bashBoard']=[$param['overplus']*0.2+$param['weight'],$param['overplus']*0.4+$param['weight'],$param['overplus']*0.6+$param['weight'],$param['overplus']*0.8+$param['weight']];
$record=['day'=>ceil((time()-$user['register_time'])/(60*60*21)),'weight'=> $param['weight'],'status'=>$param['status']];
$record=['day'=>ceil((time()-$user['register_time'])/(60*60*24)),'weight'=> $param['weight'],'status'=>$param['status']];
}else{
$param['weight']=$re['weight'];
$param['increase']=$re['weight']-$user['before_weight'];
... ...