Merge branch 'master' of github.com:easysoft/zentaopms
This commit is contained in:
@@ -618,6 +618,27 @@ class blockModel extends model
|
||||
*/
|
||||
public function isLongBlock($block)
|
||||
{
|
||||
if(empty($block)) return true;
|
||||
return $block->grid >= 6;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check API for ranzhi
|
||||
*
|
||||
* @param string $hash
|
||||
* @access public
|
||||
* @return bool
|
||||
*/
|
||||
public function checkAPI($hash)
|
||||
{
|
||||
if(empty($hash)) return false;
|
||||
|
||||
$key = $this->dao->select('value')->from(TABLE_CONFIG)
|
||||
->where('owner')->eq('system')
|
||||
->andWhere('module')->eq('sso')
|
||||
->andWhere('`key`')->eq('key')
|
||||
->fetch('value');
|
||||
|
||||
return $key == $hash;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user