|
|
@@ -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
|
}
|