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

接口

... ... @@ -327,7 +327,7 @@ class SignController extends RestBaseController
$param['weight']=$re['weight'];
$param['increase']=$re['weight']-$user['before_weight'];
$param['overplus']=$paramService->overplus($user['before_weight'],$user['height'])-($re['weight']-$user['before_weight']);
$record=Db::name('user_week_sign')->where('user_id',$user['id'])->select()->each(function ($item) {
$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) {
if ($item['status']==1){
$item['status']='消瘦';
}elseif ($item['status']==2){
... ...