@@ -6,8 +6,6 @@ namespace ASFEnhance.Event;
66
77internal static class Command
88{
9- private const int CategoryBegin = 110 ;
10-
119 /// <summary>
1210 /// 获取DL2贴纸 6.28 - ?
1311 /// </summary>
@@ -21,7 +19,7 @@ internal static class Command
2119 return bot . FormatBotResponse ( Strings . BotNotConnected ) ;
2220 }
2321
24- var token = await WebRequest . FetchEventToken ( bot , "dyinglight2towerraid" ) . ConfigureAwait ( false ) ;
22+ var token = bot . AccessToken ?? throw new AccessTokenNullException ( bot ) ;
2523 if ( string . IsNullOrEmpty ( token ) )
2624 {
2725 return bot . FormatBotResponse ( Langs . NetworkError ) ;
@@ -236,8 +234,19 @@ internal static class Command
236234
237235 if ( intGamsIDs . Count < categories ) //不足11个游戏自动补齐
238236 {
239- List < int > defaultGames =
240- [ 2358720 , 2669410 , 548430 , 2230650 , 1623730 , 2358720 , 2679460 , 2358720 , 2358720 , 2704110 , 3097560 ] ;
237+ List < int > defaultGames = [
238+ 3167020 ,
239+ 2399420 ,
240+ 548430 ,
241+ 2407270 ,
242+ 2543180 ,
243+ 2947440 ,
244+ 2988300 ,
245+ 1030300 ,
246+ 1903340 ,
247+ 2089600 ,
248+ 3444020
249+ ] ;
241250 while ( intGamsIDs . Count < categories )
242251 {
243252 intGamsIDs . Add ( defaultGames [ intGamsIDs . Count ] ) ;
@@ -253,11 +262,13 @@ internal static class Command
253262
254263 var semaphore = new SemaphoreSlim ( 1 ) ;
255264
265+ int categoryBegin = 130 ;
266+
256267 List < Task > tasks = [ ] ;
257268
258269 for ( var i = 0 ; i < categories ; i ++ )
259270 {
260- tasks . Add ( WebRequest . MakeVoteForAutumnSale ( bot , intGamsIDs [ i ] , CategoryBegin + i , token , semaphore ) ) ;
271+ tasks . Add ( WebRequest . MakeVoteForAutumnSale ( bot , intGamsIDs [ i ] , categoryBegin ++ , token , semaphore ) ) ;
261272 }
262273
263274 await Utilities . InParallel ( tasks ) . ConfigureAwait ( false ) ;
@@ -375,7 +386,19 @@ internal static class Command
375386 if ( intGamsIDs . Count < categories ) //不足11个游戏自动补齐
376387 {
377388 List < int > defaultGames =
378- [ 2358720 , 2669410 , 413150 , 2379780 , 1623730 , 1145350 , 2379780 , 2358720 , 2396980 , 2358720 , 2198150 ] ;
389+ [
390+ 3167020 ,
391+ 2399420 ,
392+ 548430 ,
393+ 2407270 ,
394+ 2543180 ,
395+ 2947440 ,
396+ 2988300 ,
397+ 1030300 ,
398+ 1903340 ,
399+ 2089600 ,
400+ 3444020
401+ ] ;
379402 while ( intGamsIDs . Count < categories )
380403 {
381404 intGamsIDs . Add ( defaultGames [ intGamsIDs . Count ] ) ;
@@ -391,11 +414,13 @@ internal static class Command
391414
392415 var semaphore = new SemaphoreSlim ( 1 ) ;
393416
417+ int categoryBegin = 130 ;
418+
394419 List < Task > tasks = [ ] ;
395420
396421 for ( var i = 0 ; i < categories ; i ++ )
397422 {
398- tasks . Add ( WebRequest . MakeWinterSteamAwardVote ( bot , intGamsIDs [ i ] , CategoryBegin + i , token , semaphore ) ) ;
423+ tasks . Add ( WebRequest . MakeWinterSteamAwardVote ( bot , intGamsIDs [ i ] , categoryBegin ++ , token , semaphore ) ) ;
399424 }
400425
401426 await Utilities . InParallel ( tasks ) . ConfigureAwait ( false ) ;
0 commit comments