Browse Source

每日任务每日商店免费领取钻石不计入任务内

cyzhao 1 year ago
parent
commit
5ab03d6e1d

+ 1 - 1
Gameserver/App/model/Const/GameConfig.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-06-06 15:16:17
+ // 日期: 2024-06-07 10:54:59
 ////////////////////
 
 /**

+ 1 - 1
Gameserver/App/model/Const/sm_hero.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-06-03 12:13:18
+ // 日期: 2024-06-07 10:50:44
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_item.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-06-06 10:35:45
+ // 日期: 2024-06-06 15:47:13
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_waveItem.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-06-06 09:25:21
+ // 日期: 2024-06-07 10:11:04
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_waves.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-06-06 09:25:21
+ // 日期: 2024-06-07 10:11:04
 ////////////////////
 
 

+ 4 - 2
Gameserver/App/process/ShopProc.php

@@ -117,7 +117,7 @@ class ShopProc {
                 my_Assert($mo != null, ErrCode::err_const_no);
 
                 my_Assert(in_array($typeId, $user->privateState->dailyShopRandItems), ErrCode::err_const_no);
-                if ($typeId == 10001) {
+                if ($mo->type == 1) {
                     $getNum = 0;
                     foreach ($user->privateState->dailyShopReceived as $id) {
                         if ($id == $typeId) {
@@ -148,6 +148,8 @@ class ShopProc {
                         default:
                             break;
                     }
+                    
+                    TaskProc::OnBuyNumDailyShop();
                 }
 
                 $str = explode(',', $mo->reward);
@@ -157,7 +159,7 @@ class ShopProc {
 
                 StoreProc::AddMultiItemInStore($mo->reward);
                 ctx()->privateState->dailyShopReceived[] = $typeId;
-                TaskProc::OnBuyNumDailyShop();
+                
                 break;
 
             case EnumShopGift::GemBox_Shop ://宝石宝箱