作者 zhl

u

@@ -31,7 +31,7 @@ protected function success($data = [], $message = 'success', $status = 200) @@ -31,7 +31,7 @@ protected function success($data = [], $message = 'success', $status = 200)
31 */ 31 */
32 protected function error($message = 'error', $status = 400, $data = []) 32 protected function error($message = 'error', $status = 400, $data = [])
33 { 33 {
34 - $array = compact('status', 'message', $data); 34 + $array = compact('status', 'message', 'data');
35 return json_encode($array, JSON_UNESCAPED_UNICODE); 35 return json_encode($array, JSON_UNESCAPED_UNICODE);
36 } 36 }
37 } 37 }
@@ -72,7 +72,12 @@ public function createBtSite($domain, $ssl_open, $ssl_auto, $ssl_auto_day, $ssl_ @@ -72,7 +72,12 @@ public function createBtSite($domain, $ssl_open, $ssl_auto, $ssl_auto_day, $ssl_
72 // $bt->SaveFileBody($host, ''); 72 // $bt->SaveFileBody($host, '');
73 73
74 $result = BtSites::createBtSite($host, $result['siteId'], $ssl_open, $ssl_status, $ssl_auto, $ssl_auto_day); 74 $result = BtSites::createBtSite($host, $result['siteId'], $ssl_open, $ssl_status, $ssl_auto, $ssl_auto_day);
75 - return $result->toArray(); 75 + $site = $result->toArray();
  76 + unset($site['id']);
  77 + unset($site['created_at']);
  78 + unset($site['updated_at']);
  79 + unset($site['is_del']);
  80 + return $site;
76 } 81 }
77 82
78 /** 83 /**