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