|
|
@@ -391,7 +391,7 @@ export async function GetYJBDCGenerateConfig(ctx) {
|
|
391
|
391
|
}
|
|
392
|
392
|
|
|
393
|
393
|
//获得秒过当天任务完成后的英语单词(未完成)
|
|
394
|
|
-export async function getMiaoguoTodayAllWords(ctx) {
|
|
|
394
|
+export async function GetMiaoguoTodayAllWords(ctx) {
|
|
395
|
395
|
const param = {
|
|
396
|
396
|
UserID: ctx.query.UserID || 0,
|
|
397
|
397
|
};
|
|
|
@@ -407,11 +407,8 @@ export async function getMiaoguoTodayAllWords(ctx) {
|
|
407
|
407
|
for(let i=0;i<list.length;i++){
|
|
408
|
408
|
arr.push(list[i].Content[1].Content);
|
|
409
|
409
|
}
|
|
410
|
|
-
|
|
411
|
410
|
let arr2=stringUtils.extractEnglishWords(arr);
|
|
412
|
|
- console.log(arr2.length);
|
|
413
|
|
-
|
|
414
|
|
- return {"errcode": 10000, result:result}
|
|
|
411
|
+ return {"errcode": 10000, result:arr2.join(",")}
|
|
415
|
412
|
}
|
|
416
|
413
|
else{
|
|
417
|
414
|
return {errcode: 101};
|
|
|
@@ -431,16 +428,12 @@ export async function GetYJBDCArticleList(ctx) {
|
|
431
|
428
|
UserID: ctx.query.UserID || 0,
|
|
432
|
429
|
ID:ctx.query.ID || 0,
|
|
433
|
430
|
IsFine:ctx.query.IsFine || 0,//是否是精选文章
|
|
434
|
|
- IsChoiceness:ctx.query.IsChoiceness || 0,//是否是精选文章(要删除)
|
|
435
|
431
|
IsTodayCount: ctx.query.IsTodayCount || false,
|
|
436
|
432
|
IsNew: ctx.query.IsNew || 0,
|
|
437
|
433
|
PageID: ctx.query.PageID || 999999,
|
|
438
|
434
|
PageCount: ctx.query.PageCount || 10,
|
|
439
|
435
|
};
|
|
440
|
|
-
|
|
441
|
|
- if (param.IsChoiceness && !param.IsFine)
|
|
442
|
|
- param.IsFine=param.IsChoiceness;
|
|
443
|
|
-
|
|
|
436
|
+
|
|
444
|
437
|
if (param.IsFine)
|
|
445
|
438
|
param.PageCount=9999;
|
|
446
|
439
|
|