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

接口

@@ -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'];