mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified setResponse函数code参数添加默认值
modified: Application/Home/ORG/ApiLog.class.php
This commit is contained in:
parent
c833d3db79
commit
cd994c01fb
@ -54,7 +54,7 @@ class ApiLog {
|
|||||||
self::$requestAfterFilter = $data;
|
self::$requestAfterFilter = $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function setResponse($data, $code) {
|
public static function setResponse($data, $code = '') {
|
||||||
if (is_array($data)) {
|
if (is_array($data)) {
|
||||||
$data = json_encode($data);
|
$data = json_encode($data);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user