modified 细节调整

This commit is contained in:
zhaoxiang 2019-08-30 16:05:19 +08:00
parent 7c3ddddbd5
commit 53934cbacd

View File

@ -59,7 +59,10 @@ class Api extends Base {
];
}
return $this->buildSuccess($result);
return $this->buildSuccess([
'data' => $result,
'co' => config('apiadmin.APP_NAME') . ' ' . config('apiadmin.APP_VERSION')
]);
}
public function login() {
@ -104,7 +107,11 @@ class Api extends Base {
$listInfo[] = $_listInfo;
}
return $this->buildSuccess($listInfo);
return $this->buildSuccess([
'data' => $listInfo,
'co' => config('apiadmin.APP_NAME') . ' ' . config('apiadmin.APP_VERSION')
]);
}
public function detail() {
@ -141,7 +148,8 @@ class Api extends Base {
'response' => $response,
'dataType' => $dataType,
'apiList' => $apiList,
'url' => $this->request->domain() . '/api/' . $hash
'url' => $this->request->domain() . '/api/' . $hash,
'co' => config('apiadmin.APP_NAME') . ' ' . config('apiadmin.APP_VERSION')
]);
}