admin/app/common/model/settings/Setting.php
@@ -37,9 +37,17 @@ /** * 获取指定项设置 */ public static function getItem($key, $app_id = null) public static function getItem($key, $app_id = null,$shop_supplier_id=0) { $data = self::getAll($app_id); if (!isset($data[$key])&&strpos($key, 'nav_')!==false){ if ($shop_supplier_id!=0){ return []; }else{ $key = 'nav'; } } $data_key = $data[$key]; if(isset($data_key)){ $data_key = $data[$key]['values'];