...
|
...
|
@@ -315,10 +315,10 @@ class SignController extends RestBaseController |
|
|
$paramService=new ParamService();
|
|
|
if (!$re){
|
|
|
$param['weight']=$user['now_weight'];
|
|
|
$param['status']=$paramService->status($user['before_weight'],$user['height']);
|
|
|
// $param['status']=$paramService->status($user['before_weight'],$user['height']);
|
|
|
$param['increase']=$user['now_weight']-$user['before_weight'];
|
|
|
$param['overplus']=$paramService->overplus($user['before_weight'],$user['height'])-($user['now_weight']-$user['before_weight']);
|
|
|
$record=['day'=>ceil((time()-$user['register_time'])/(60*60*24)),'weight'=> $param['weight'],'status'=>$param['status']];
|
|
|
$record=['day'=>ceil((time()-$user['register_time'])/(60*60*24)),'weight'=> $param['weight'],'status'=>$paramService->status($user['before_weight'],$user['height'])];
|
|
|
}else{
|
|
|
$param['weight']=$re['weight'];
|
|
|
$param['increase']=$re['weight']-$user['before_weight'];
|
...
|
...
|
|