* Fix bug #38489.
This commit is contained in:
@@ -49,6 +49,20 @@ class InstanceModel extends model
|
||||
return $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据应用url获取应用信息。
|
||||
* Get a application by url.
|
||||
*
|
||||
* @param string $url
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function getByUrl(string $url)
|
||||
{
|
||||
$url = str_replace(array('https://', 'http://'), '', trim($url));
|
||||
return $this->dao->select('id')->from(TABLE_INSTANCE)->where('domain')->eq($url)->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get by id list.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user