|
|
@@ -215,17 +215,17 @@ function printMaterialGroupsInfo(materialGroups) {
|
|
|
|
|
|
async function checkGetMaterialDetails(gMaterialDetails, materialDict) {
|
|
|
let useCache = lk.getVal(GandartConstKey.CompositeMaterialCache);
|
|
|
- lk.log(`合成材料列表本地缓存:${useCache}`);
|
|
|
if (!lk.isEmpty(useCache)) {
|
|
|
useCache = JSON.parse(useCache);
|
|
|
} else {
|
|
|
useCache = false;
|
|
|
}
|
|
|
+ lk.log(`合成材料列表本地缓存:${useCache}`);
|
|
|
let isReqServerData = false;
|
|
|
if (useCache) {
|
|
|
let jsonStr = lk.getVal(GandartConstKey.PrivCollectionDetail);
|
|
|
+ lk.log(jsonStr);
|
|
|
if (!lk.isEmpty(jsonStr)) {
|
|
|
- lk.log(jsonStr);
|
|
|
try {
|
|
|
let data = JSON.parse(jsonStr);
|
|
|
for (let k in materialDict) {
|