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

个人中心接口

... ... @@ -250,7 +250,7 @@ class SignController extends RestBaseController
$param['status']=$paramService->status($user['before_weight'],$user['height']);
$param['increase']=0;
$param['overplus']=$paramService->overplus($user['before_weight'],$user['height']);
$record=[];
$record=['day'=>ceil((time()-$user['register_time'])/(60*60*21)),'weight'=> $param['weight'],'status'=>$param['status']];
}else{
$param['weight']=$re['weight'];
$param['increase']=$re['weight']-$user['before_weight'];
... ... @@ -267,6 +267,7 @@ class SignController extends RestBaseController
elseif ($item['status']==4){
$item['status']='超重';
}
$item['day']=ceil((time()-$item['register_time'])/(60*60*21));
return $item;
});
}
... ...