作者 zhl

u

... ... @@ -31,7 +31,7 @@ protected function success($data = [], $message = 'success', $status = 200)
*/
protected function error($message = 'error', $status = 400, $data = [])
{
$array = compact('status', 'message', $data);
$array = compact('status', 'message', 'data');
return json_encode($array, JSON_UNESCAPED_UNICODE);
}
}
... ...
... ... @@ -72,7 +72,12 @@ public function createBtSite($domain, $ssl_open, $ssl_auto, $ssl_auto_day, $ssl_
// $bt->SaveFileBody($host, '');
$result = BtSites::createBtSite($host, $result['siteId'], $ssl_open, $ssl_status, $ssl_auto, $ssl_auto_day);
return $result->toArray();
$site = $result->toArray();
unset($site['id']);
unset($site['created_at']);
unset($site['updated_at']);
unset($site['is_del']);
return $site;
}
/**
... ...