fix:优化代码
parent
4c82c45324
commit
b4ed7c69a6
|
@ -39,10 +39,9 @@ class Response
|
||||||
$resp = [
|
$resp = [
|
||||||
"code" => ResponseCode::SUCCESS,
|
"code" => ResponseCode::SUCCESS,
|
||||||
"message" => $message,
|
"message" => $message,
|
||||||
|
"data" => $data,
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($data) $resp["data"] = $data;
|
|
||||||
|
|
||||||
return $this->response->json($resp);
|
return $this->response->json($resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue