/** * 请求API.ENAME.COM 方法演示 */ public function apicomAction() { $apiCom = new \core\ApiCom('domaintrade/getDomainInfo'); return $apiCom->getPostData(array('domains' => 'abc.com,aaaa.com')); }
/** * 检查非我司域名是否在黑名单中 * * @param s $domain * string * */ public function checkBlackList($domain) { $apiCom = new \core\ApiCom('blacklistadmin/isinblacklist'); $res = $apiCom->getPostData(array('enameIdOrDoamin' => $domain)); return isset($res) && isset($res[0]) && isset($res[0]['falg']) && $res[0]['falg'] ? true : false; }