|
@@ 822-826 (lines=5) @@
|
| 819 |
|
return false; |
| 820 |
|
} |
| 821 |
|
$classPath = explode('\\', get_called_class()); |
| 822 |
|
if (!empty(static::$storage['options']['share'])) { |
| 823 |
|
$moduleConfig = Config::share($classPath[0]); |
| 824 |
|
} else { |
| 825 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 826 |
|
} |
| 827 |
|
$appType = App::$cur->type; |
| 828 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 829 |
|
if (!empty($options['appType'])) { |
|
@@ 862-866 (lines=5) @@
|
| 859 |
|
public static function getListFromModuleStorage($options = []) |
| 860 |
|
{ |
| 861 |
|
$classPath = explode('\\', get_called_class()); |
| 862 |
|
if (!empty(static::$storage['options']['share'])) { |
| 863 |
|
$moduleConfig = Config::share($classPath[0]); |
| 864 |
|
} else { |
| 865 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 866 |
|
} |
| 867 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 868 |
|
if (empty($options['appType'])) { |
| 869 |
|
$appType = App::$cur->type; |
|
@@ 929-933 (lines=5) @@
|
| 926 |
|
} else { |
| 927 |
|
$appType = $options['appType']; |
| 928 |
|
} |
| 929 |
|
if (!empty(static::$storage['options']['share'])) { |
| 930 |
|
$moduleConfig = Config::share($classPath[0]); |
| 931 |
|
} else { |
| 932 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 933 |
|
} |
| 934 |
|
if (!empty($moduleConfig['storage'][$appType][$classPath[1]])) { |
| 935 |
|
$items = $moduleConfig['storage'][$appType][$classPath[1]]; |
| 936 |
|
if (empty($options['where'])) { |
|
@@ 1144-1148 (lines=5) @@
|
| 1141 |
|
$appType = ''; |
| 1142 |
|
$classPath = explode('\\', get_called_class()); |
| 1143 |
|
|
| 1144 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1145 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1146 |
|
} else { |
| 1147 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1148 |
|
} |
| 1149 |
|
|
| 1150 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 1151 |
|
if (empty($options['appType'])) { |
|
@@ 1347-1351 (lines=5) @@
|
| 1344 |
|
$id = $this->pk(); |
| 1345 |
|
$appType = ''; |
| 1346 |
|
$classPath = explode('\\', get_called_class()); |
| 1347 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1348 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1349 |
|
} else { |
| 1350 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1351 |
|
} |
| 1352 |
|
|
| 1353 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 1354 |
|
if (empty($options['appType'])) { |