|
|
|
@ -15,6 +15,9 @@
|
|
|
|
|
for (var k in moduleInjectionMap) { |
|
|
|
|
if (cls[k]) { |
|
|
|
|
for (key in cls[k]) { |
|
|
|
|
if (!moduleInjectionMap[k]) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
if (!moduleInjectionMap[k][key]) { |
|
|
|
|
moduleInjectionMap[k][key] = []; |
|
|
|
|
} |
|
|
|
@ -108,7 +111,8 @@
|
|
|
|
|
for (var j = 0; j < modules.length; j++) { |
|
|
|
|
var module = modules[i]; |
|
|
|
|
if (module && dependencies[module.moduleId] && module.version === version) { |
|
|
|
|
var minVersion = dependencies[module.moduleId].minVersion, maxVersion = dependencies[module.moduleId].maxVersion; |
|
|
|
|
var minVersion = dependencies[module.moduleId].minVersion, |
|
|
|
|
maxVersion = dependencies[module.moduleId].maxVersion; |
|
|
|
|
if (minVersion && (moduleInjection[module.moduleId].version || version) < minVersion) { |
|
|
|
|
findVersion = true; |
|
|
|
|
break; |
|
|
|
@ -120,7 +124,7 @@
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (findVersion === true) { |
|
|
|
|
_global.console && console.error("module: [" + type + "] 版本: [" + module.version + "] 已过期"); |
|
|
|
|
_global.console && console.error("moduleId: [" + module.moduleId + "] 服务: [" + type + "] 版本: [" + module.version + "] 已过期", modelInjection[module.moduleId]); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|