Browse Source

商城宝箱免费领取时间记录

cyzhao 1 year ago
parent
commit
62ca84f0f1

+ 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-04-17 11:16:09
+ // 日期: 2024-04-18 10:49:37
 ////////////////////
 
 /**

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

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

+ 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-04-16 16:32:47
+ // 日期: 2024-04-18 10:02:47
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-04-15 13:59:36
+ // 日期: 2024-04-18 09:02:47
 ////////////////////
 
 

+ 16 - 1
Gameserver/App/model/Const/sm_shop_daily.php

@@ -24,7 +24,7 @@ class sm_shop_daily
     public $typeId;
 
     /**
-    * @var Int32 物品的类型,1钻石;2图纸;3装备;4配件宝箱  
+    * @var Int32 类型最新修改: 物品的类型,1钻石;2图纸;3宝石;4 技能碎片  
     */
     public $type;
 
@@ -48,10 +48,25 @@ class sm_shop_daily
     */
     public $num;
 
+    /**
+    * @var Int32 免费次数  
+    */
+    public $freeNum;
+
+    /**
+    * @var Int32 点击广告后距离下次冷却时间 default(0) 
+    */
+    public $downTs;
+
     /**
     * @var String 奖励内容  
     */
     public $reward;
 
+    /**
+    * @var Int32 奖励随机权重值  
+    */
+    public $per;
+
 }
 

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

@@ -118,11 +118,13 @@ class ShopProc {
                     if($buyNum == 0){
                         $buyNum = 1;
                         my_Assert(now()-$user->privateState->lastFreeGetTs_ShopBoxCommon >= $mo->freeDownTs*24*60*60, ErrCode::user_shop_FreeNumLimit);
+                        $user->privateState->lastFreeGetTs_ShopBoxCommon = now();
                     }                    
                 } else if($mo->type == 2){
                     if($buyNum == 0){
                         $buyNum = 1;
                         my_Assert(now()-$user->privateState->lastFreeGetTs_ShopBoxBright >= $mo->freeDownTs*24*60*60, ErrCode::user_shop_FreeNumLimit);
+                        $user->privateState->lastFreeGetTs_ShopBoxBright = now();
                     }
                 }