Kaynağa Gözat

update createAccount

andre 2 yıl önce
ebeveyn
işleme
002856d0ce
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 3 2
      app/Http/Actions/CreateAccount.php

+ 3 - 2
app/Http/Actions/CreateAccount.php

@@ -70,15 +70,16 @@ class CreateAccount extends AddonController
      */
      */
     protected function kerioRunService($params = null)
     protected function kerioRunService($params = null)
     {
     {
+        $domains = array($params['domain']);
         $api = new KerioConnectApi('whmcsKerioEmail', 'Thurdata', '1.0');
         $api = new KerioConnectApi('whmcsKerioEmail', 'Thurdata', '1.0');
         try {
         try {
             $api->login($params['serverhostname'], $params['serverusername'], $params['serverpassword']);
             $api->login($params['serverhostname'], $params['serverusername'], $params['serverpassword']);
-            $result = $api->sendRequest('Domains.create', [ $params['domain'] ]);
+            $result = $api->sendRequest('Domains.create', $domains);
 
 
             logModuleCall(
             logModuleCall(
                 'kerioEmail',
                 'kerioEmail',
                 __FUNCTION__,
                 __FUNCTION__,
-                $api,
+                $domains,
                 'Debug Features & Attributes',
                 'Debug Features & Attributes',
                 $result
                 $result
             );
             );