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

接口

@@ -322,7 +322,7 @@ class SignController extends RestBaseController @@ -322,7 +322,7 @@ class SignController extends RestBaseController
322 // $param['status']=$paramService->status($user['before_weight'],$user['height']); 322 // $param['status']=$paramService->status($user['before_weight'],$user['height']);
323 $param['increase']=$user['now_weight']-$user['before_weight']; 323 $param['increase']=$user['now_weight']-$user['before_weight'];
324 $param['overplus']=$paramService->overplus($user['before_weight'],$user['height'])-($user['now_weight']-$user['before_weight']); 324 $param['overplus']=$paramService->overplus($user['before_weight'],$user['height'])-($user['now_weight']-$user['before_weight']);
325 - $record=['day'=>ceil((time()-$user['register_time'])/(60*60*24)),'weight'=> $param['weight'],'status'=>$paramService->status($user['before_weight'],$user['height'])]; 325 + $record=[0=>['day'=>ceil((time()-$user['register_time'])/(60*60*24)),'weight'=> $param['weight'],'status'=>$paramService->status($user['before_weight'],$user['height'])]];
326 }else{ 326 }else{
327 $param['weight']=$re['weight']; 327 $param['weight']=$re['weight'];
328 $param['increase']=$re['weight']-$user['before_weight']; 328 $param['increase']=$re['weight']-$user['before_weight'];