正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -327,7 +327,7 @@ class SignController extends RestBaseController | @@ -327,7 +327,7 @@ class SignController extends RestBaseController | ||
327 | $param['weight']=$re['weight']; | 327 | $param['weight']=$re['weight']; |
328 | $param['increase']=$re['weight']-$user['before_weight']; | 328 | $param['increase']=$re['weight']-$user['before_weight']; |
329 | $param['overplus']=$paramService->overplus($user['before_weight'],$user['height'])-($re['weight']-$user['before_weight']); | 329 | $param['overplus']=$paramService->overplus($user['before_weight'],$user['height'])-($re['weight']-$user['before_weight']); |
330 | - $record=Db::name('user_week_sign')->where('user_id',$user['id'])->select()->each(function ($item) { | 330 | + $record=Db::name('user_week_sign')->alias('uw')->join('user u','uw.user_id=u.id')->where('uw.user_id',$user['id'])->select()->each(function ($item) { |
331 | if ($item['status']==1){ | 331 | if ($item['status']==1){ |
332 | $item['status']='消瘦'; | 332 | $item['status']='消瘦'; |
333 | }elseif ($item['status']==2){ | 333 | }elseif ($item['status']==2){ |
-
请 注册 或 登录 后发表评论