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

个人中心接口

... ... @@ -319,10 +319,10 @@ class SignController extends RestBaseController
$user=Db::name('user')->where('id',$this->getUserId())->find();
$paramService=new ParamService();
$nengliang=$paramService->nengliang($user['before_weight'],$user['height'],$user['weight_level'],$user['pregnant_week'],$user['register_time']);
$param['day_energy']=$nengliang;
$param['protein']=$nengliang*0.2/4;
$param['fat']=$nengliang*0.2/9;
$param['water']=$nengliang*0.6/4;
$param['day_energy']=ceil($nengliang);
$param['protein']=ceil($nengliang*0.2/4);
$param['fat']=ceil($nengliang*0.2/9);
$param['water']=ceil($nengliang*0.6/4);
//返回
$this->success('周打卡提交成功',$param);
}
... ...