...
|
...
|
@@ -55,7 +55,7 @@ class UserController extends RestBaseController |
|
|
* @param name:age require:1 desc:年龄(岁)
|
|
|
* @param name:height require:1 desc:身高(cm)
|
|
|
* @param name:before_weight require:1 desc:孕前体重(kg)
|
|
|
* @param name:last_yuejin_time require:1 desc:末次月经第一天(时间戳)
|
|
|
* @param name:last_yuejin_time require:1 desc:末次月经第一天
|
|
|
* @param name:pregnant_week require:1 desc:孕周
|
|
|
* @param name:now_weight require:1 desc:当前体重
|
|
|
* @param name:weight_level require:1 desc:体力活动水平(休息状态,轻体力,中体力,重体力)
|
...
|
...
|
@@ -64,6 +64,7 @@ class UserController extends RestBaseController |
|
|
$param=$this->request->param();
|
|
|
$param['user_status']=1;
|
|
|
$param['register_time']=time();
|
|
|
$param['last_yuejin_time']=strtotime($param['last_yuejin_time']);
|
|
|
Db::name('user')->where('id',$this->getUserId())->update($param);
|
|
|
$this->success('注册信息提交成功');
|
|
|
}
|
...
|
...
|
|