chengjie 4 月之前
父节点
当前提交
40bd2d7bb7
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      src/api/yjbdc/yjbdcController.js

+ 8 - 1
src/api/yjbdc/yjbdcController.js

@@ -314,8 +314,15 @@ export async function GenerateArticle(ctx) {
314 314
                 param2.JSONString=JSON.stringify(result2.replace(/[\r\n]+/g, ''));
315 315
                 param2.Flag=0;
316 316
                 let idInsert= await yjbdc.AddArticleInfo(param2);
317
-                result2.ID=idInsert.insertId;
317
+                
318
+
318 319
                 result = { errcode: 10000, result: result2 };
320
+
321
+                // let result3={};
322
+                // result3.ID=idInsert.insertId;
323
+                // result3.Content=result2;
324
+                // result = { errcode: 10000, result: result3 };
325
+
319 326
                 globalCache.set(url, result, config.BufferMemoryTime);
320 327
                 console.log("缓存60秒");
321 328
             }