|
@@ 835-839 (lines=5) @@
|
| 832 |
|
return false; |
| 833 |
|
} |
| 834 |
|
$classPath = explode('\\', get_called_class()); |
| 835 |
|
if (!empty(static::$storage['options']['share'])) { |
| 836 |
|
$moduleConfig = Config::share($classPath[0]); |
| 837 |
|
} else { |
| 838 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 839 |
|
} |
| 840 |
|
$appType = App::$cur->type; |
| 841 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 842 |
|
if (!empty($options['appType'])) { |
|
@@ 875-879 (lines=5) @@
|
| 872 |
|
public static function getListFromModuleStorage($options = []) |
| 873 |
|
{ |
| 874 |
|
$classPath = explode('\\', get_called_class()); |
| 875 |
|
if (!empty(static::$storage['options']['share'])) { |
| 876 |
|
$moduleConfig = Config::share($classPath[0]); |
| 877 |
|
} else { |
| 878 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 879 |
|
} |
| 880 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 881 |
|
if (empty($options['appType'])) { |
| 882 |
|
$appType = App::$cur->type; |
|
@@ 942-946 (lines=5) @@
|
| 939 |
|
} else { |
| 940 |
|
$appType = $options['appType']; |
| 941 |
|
} |
| 942 |
|
if (!empty(static::$storage['options']['share'])) { |
| 943 |
|
$moduleConfig = Config::share($classPath[0]); |
| 944 |
|
} else { |
| 945 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 946 |
|
} |
| 947 |
|
if (!empty($moduleConfig['storage'][$appType][$classPath[1]])) { |
| 948 |
|
$items = $moduleConfig['storage'][$appType][$classPath[1]]; |
| 949 |
|
if (empty($options['where'])) { |
|
@@ 1162-1166 (lines=5) @@
|
| 1159 |
|
$appType = ''; |
| 1160 |
|
$classPath = explode('\\', get_called_class()); |
| 1161 |
|
|
| 1162 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1163 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1164 |
|
} else { |
| 1165 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1166 |
|
} |
| 1167 |
|
|
| 1168 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 1169 |
|
if (empty($options['appType'])) { |
|
@@ 1365-1369 (lines=5) @@
|
| 1362 |
|
$id = $this->pk(); |
| 1363 |
|
$appType = ''; |
| 1364 |
|
$classPath = explode('\\', get_called_class()); |
| 1365 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1366 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1367 |
|
} else { |
| 1368 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1369 |
|
} |
| 1370 |
|
|
| 1371 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 1372 |
|
if (empty($options['appType'])) { |