正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -55,7 +55,7 @@ class UserController extends RestBaseController | @@ -55,7 +55,7 @@ class UserController extends RestBaseController | ||
55 | * @param name:age require:1 desc:年龄(岁) | 55 | * @param name:age require:1 desc:年龄(岁) |
56 | * @param name:height require:1 desc:身高(cm) | 56 | * @param name:height require:1 desc:身高(cm) |
57 | * @param name:before_weight require:1 desc:孕前体重(kg) | 57 | * @param name:before_weight require:1 desc:孕前体重(kg) |
58 | - * @param name:last_yuejin_time require:1 desc:末次月经第一天(时间戳) | 58 | + * @param name:last_yuejin_time require:1 desc:末次月经第一天 |
59 | * @param name:pregnant_week require:1 desc:孕周 | 59 | * @param name:pregnant_week require:1 desc:孕周 |
60 | * @param name:now_weight require:1 desc:当前体重 | 60 | * @param name:now_weight require:1 desc:当前体重 |
61 | * @param name:weight_level require:1 desc:体力活动水平(休息状态,轻体力,中体力,重体力) | 61 | * @param name:weight_level require:1 desc:体力活动水平(休息状态,轻体力,中体力,重体力) |
@@ -64,6 +64,7 @@ class UserController extends RestBaseController | @@ -64,6 +64,7 @@ class UserController extends RestBaseController | ||
64 | $param=$this->request->param(); | 64 | $param=$this->request->param(); |
65 | $param['user_status']=1; | 65 | $param['user_status']=1; |
66 | $param['register_time']=time(); | 66 | $param['register_time']=time(); |
67 | + $param['last_yuejin_time']=strtotime($param['last_yuejin_time']); | ||
67 | Db::name('user')->where('id',$this->getUserId())->update($param); | 68 | Db::name('user')->where('id',$this->getUserId())->update($param); |
68 | $this->success('注册信息提交成功'); | 69 | $this->success('注册信息提交成功'); |
69 | } | 70 | } |
-
请 注册 或 登录 后发表评论