|
|
@@ -236,13 +236,6 @@ export async function GenerateArticle(ctx) {
|
|
236
|
236
|
else if (params.AIVersion=="1.5"){
|
|
237
|
237
|
aiProvider = 'doubao-kimi-k2-250711';
|
|
238
|
238
|
}
|
|
239
|
|
-
|
|
240
|
|
-
|
|
241
|
|
- // if (aiProvider.indexOf("llama")>=0)
|
|
242
|
|
- // content=content.replace("[补充1]",",如果生成的JSON中有ArticleEnglishCorrected和ArticleChineseCorrected,直接覆盖原有的ArticleEnglish和ArticleChinese,不要再生成。");
|
|
243
|
|
- // else
|
|
244
|
|
- // content=content.replace("[补充1]","");
|
|
245
|
|
-
|
|
246
|
239
|
|
|
247
|
240
|
try {
|
|
248
|
241
|
//开始时间
|
|
|
@@ -387,7 +380,6 @@ export async function getMiaoguoTodayAllWords(ctx) {
|
|
387
|
380
|
ctx.body = result;
|
|
388
|
381
|
}
|
|
389
|
382
|
|
|
390
|
|
-
|
|
391
|
383
|
//获得文章列表或具体文章
|
|
392
|
384
|
export async function GetYJBDCArticleList(ctx) {
|
|
393
|
385
|
const param = {
|
|
|
@@ -396,6 +388,8 @@ export async function GetYJBDCArticleList(ctx) {
|
|
396
|
388
|
IsChoiceness:ctx.query.IsChoiceness || 0,//是否是精选文章
|
|
397
|
389
|
IsTodayCount: ctx.query.IsTodayCount || false,
|
|
398
|
390
|
IsNew: ctx.query.IsNew || 0,
|
|
|
391
|
+ PageID: ctx.query.PageID || 999999,
|
|
|
392
|
+ PageCount: ctx.query.PageCount || 5,
|
|
399
|
393
|
};
|
|
400
|
394
|
// 尝试从缓存获取
|
|
401
|
395
|
const url='GetYJBDCArticleList?IsChoiceness='+param.IsChoiceness+'&UserID='+param.UserID+'&ID='+param.ID;
|
|
|
@@ -443,10 +437,14 @@ export async function GetYJBDCArticleList(ctx) {
|
|
443
|
437
|
};
|
|
444
|
438
|
}
|
|
445
|
439
|
else if (!param.ID){
|
|
446
|
|
- let arr=[];
|
|
|
440
|
+ let arr=[],count=0;
|
|
447
|
441
|
for(let i=0;i<result.length;i++){
|
|
448
|
|
- if (result[i].Flag==0)
|
|
449
|
|
- arr.push(result[i]);
|
|
|
442
|
+ if (result[i].Flag==0){
|
|
|
443
|
+ if (param.PageID>result[i].ID && count<param.PageCount){
|
|
|
444
|
+ arr.push(result[i]);
|
|
|
445
|
+ count++;
|
|
|
446
|
+ }
|
|
|
447
|
+ }
|
|
450
|
448
|
}
|
|
451
|
449
|
result=arr;
|
|
452
|
450
|
}
|