...
|
...
|
@@ -25,7 +25,7 @@ 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')->limit(1)['weight'];
|
|
|
$data['now_weight']=Db::name('user_week_sign')->where('user_id',$this->getUserId())->order('create_time','desc')->find()['weight'];
|
|
|
$this->success('我的健康档案',$data);
|
|
|
}
|
|
|
/**
|
...
|
...
|
|