...
|
...
|
@@ -26,8 +26,11 @@ class UserController extends RestBaseController |
|
|
*/
|
|
|
public function info()
|
|
|
{
|
|
|
$data=Db::name('user')->where('id',$this->getUserId())->field('age,height,before_weight,last_yuejin_time,pregnant_week,weight_level')->find();
|
|
|
$data['now_weight']=Db::name('user_week_sign')->where('user_id',$this->getUserId())->order('create_time','desc')->find()['weight'];
|
|
|
$data=Db::name('user')->where('id',$this->getUserId())->field('age,height,before_weight,last_yuejin_time,pregnant_week,weight_level,now_weight')->find();
|
|
|
$re=Db::name('user_week_sign')->where('user_id',$this->getUserId())->order('create_time','desc')->find();
|
|
|
if($re){
|
|
|
$data['now_weight']=$re['weight'];
|
|
|
}
|
|
|
$this->success('我的健康档案',$data);
|
|
|
}
|
|
|
/**
|
...
|
...
|
|