Commit 66118c77 authored by hujun's avatar hujun

user_name

parent 7cc2e59c
......@@ -44,10 +44,12 @@ class ReportService
{
$userResult = [];
$userModel = new Users();
$userArr = $userModel->selectUser($user_id, "id,user_nick,user_phone");
$userArr = $userModel->selectUser($user_id, "id,user_nick,user_name,user_phone");
if (count($userArr) > 0) {
$userResult["user_phone"] = $userArr["user_phone"];
$userResult["user_name"] = $userArr["user_nick"];
if (empty($userArr['user_name'])) {
$userResult["user_name"] = $userArr["user_nick"];
}
} else {
return null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment