user; if (empty($user)) return errorTrans("empty.data"); $member = $this->model->where("openid",$user['openid'])->field("openid,headimg,nickname") ->append(["withdraw",'day','mon','bonus','task','sign','level','dy_level']) ->withAttr(['withdraw' => function(){ return 0; // 可提现金额 },'day' => function(){ return 0; // 今日佣金 },'mon' => function(){ return 0; // 本月佣金 },'bonus' => function(){ return 0; // 已获得奖金 },'task' => function(){ return 0; // 已接任务 },'sign' => function(){ return 0; // 0未签约,1已签约 },'level' => function(){ return 0; // 平台等级 },'dy_level' => function(){ return 0; // 抖音等级 } ]) ->findOrEmpty(); return success("ok",$member->toArray()); } catch (\Throwable $th) { return error($th->getMessage()); } } }