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

接口

... ... @@ -322,7 +322,7 @@ class SignController extends RestBaseController
// $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'=>$paramService->status($user['before_weight'],$user['height'])];
$record=[0=>['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'];
... ...