model->where("openid",$request->user['openid'])->field("openid,nickname")->append(['avatar'])->withAttr(['avatar' => function () { return "https://washmy.oss-cn-guangzhou.aliyuncs.com/storage/20260511/23627b2cb8f73a8a90b95c31d726e6ecad0cbb9a.png"; }])->findOrEmpty(); if ($data->isEmpty()) return errorTrans("error.data"); return success("ok",$data->toArray()); } catch (\Throwable $th) { return error($th->getMessage()); } } }