...
|
...
|
@@ -27,6 +27,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,now_weight')->find();
|
|
|
$data['last_yuejin_time']=date('Y-m-d',$data['last_yuejin_time']);
|
|
|
$re=Db::name('user_week_sign')->where('user_id',$this->getUserId())->order('create_time','desc')->find();
|
|
|
if($re){
|
|
|
$data['now_weight']=$re['weight'];
|
...
|
...
|
|