正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
@@ -27,6 +27,7 @@ class UserController extends RestBaseController | @@ -27,6 +27,7 @@ class UserController extends RestBaseController | ||
27 | public function info() | 27 | public function info() |
28 | { | 28 | { |
29 | $data=Db::name('user')->where('id',$this->getUserId())->field('age,height,before_weight,last_yuejin_time,pregnant_week,weight_level,now_weight')->find(); | 29 | $data=Db::name('user')->where('id',$this->getUserId())->field('age,height,before_weight,last_yuejin_time,pregnant_week,weight_level,now_weight')->find(); |
30 | + $data['last_yuejin_time']=date('Y-m-d',$data['last_yuejin_time']); | ||
30 | $re=Db::name('user_week_sign')->where('user_id',$this->getUserId())->order('create_time','desc')->find(); | 31 | $re=Db::name('user_week_sign')->where('user_id',$this->getUserId())->order('create_time','desc')->find(); |
31 | if($re){ | 32 | if($re){ |
32 | $data['now_weight']=$re['weight']; | 33 | $data['now_weight']=$re['weight']; |
-
请 注册 或 登录 后发表评论