mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 02:45:33 +08:00
25 lines
601 B
PHP
25 lines
601 B
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
class openapi_setting
|
||
{
|
||
static function getConf($flag, $key='')
|
||
{
|
||
if(!$flag){ return false; }
|
||
|
||
$settingObj = app::get('openapi')->model('setting');
|
||
$settingInfo = $settingObj->dump(array('code'=>$flag),'*');
|
||
if($settingInfo){
|
||
if($settingInfo[$key]){
|
||
return $settingInfo[$key];
|
||
}else{
|
||
return $settingInfo;
|
||
}
|
||
}else{
|
||
return false;
|
||
}
|
||
}
|
||
} |