瀏覽代碼

changePackage - try to get domainId by name

andre 2 年之前
父節點
當前提交
e80d54f416
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      api/KerioWhmcs.php

+ 3 - 1
api/KerioWhmcs.php

@@ -97,7 +97,9 @@ class KerioWhmcs extends KerioConnectApi {
 			'query' => array(
 			'query' => array(
 				'fields' => 'id',
 				'fields' => 'id',
 				'conditions' => array(
 				'conditions' => array(
-					'name','=',$domain
+					'fieldName' => 'name',
+					'comparator' => 'Eq',
+					'value' => $domain
 				)
 				)
 			)
 			)
 		);
 		);