cyzhao 8 kuukautta sitten
vanhempi
commit
6d3f952968

+ 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-09-25 09:59:12
+ // 日期: 2024-09-27 17:05:22
 ////////////////////
 
 /**

+ 3 - 3
Gameserver/App/model/Const/sm_activeTask.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-09-24 16:08:23
+ // 日期: 2024-09-26 11:13:43
 ////////////////////
 
 
@@ -45,7 +45,7 @@ class sm_activeTask
     *  205: 通关竞速副本X次;参数1:无;参数2:参与次数(数值)
     *  206: 进入第X关;参数1:关卡ID;参数2:进入次数
     *  207: 通关主线挑战第X关的X模式X次;参数1:关卡ID和难度(1普通,2困难,3噩梦),逗号分隔。;参数2:次数
-    *  208: 领取排行榜元宝奖励X次;参数1:无;参数2:次数(数值)
+    *  208: 领取关卡排行榜元宝奖励X次;参数1:无;参数2:次数(数值)
     *  209: 玩家等级到达X级;参数1:无;参数2:等级(数值)
     *  210:通关第X关;参数1:关卡ID;参数2:通关次数(记录已通关状态)
     *  211:扫荡关卡X次;参数1:无;参数2:次数
@@ -65,7 +65,7 @@ class sm_activeTask
     *  802: 累计消耗X体力;参数1:无;参数2:数量
     *  803: 累计消耗X钻石;参数1:无;参数2:数量
     *  901: 开启X次璀璨宝石箱;参数1:宝箱类型(1:普通,2:璀璨);参数2:次数
-    *  902: 每日商店购买物品X次;参数1:无;参数2:次数 default(0) 
+    *  902: 每日商店购买物品X次;参数1:无;参数2: default(0) 
     */
     public $cmd;
 

+ 3 - 3
Gameserver/App/model/Const/sm_activeTask_type.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-09-24 16:08:23
+ // 日期: 2024-09-26 11:13:43
 ////////////////////
 
 
@@ -45,7 +45,7 @@ class sm_activeTask_type
     *  205: 通关竞速副本X次;参数1:无;参数2:参与次数(数值)
     *  206: 进入第X关;参数1:关卡ID;参数2:进入次数
     *  207: 通关主线挑战第X关的X模式X次;参数1:关卡ID和难度(1普通,2困难,3噩梦),逗号分隔。;参数2:次数
-    *  208: 领取排行榜元宝奖励X次;参数1:无;参数2:次数(数值)
+    *  208: 领取关卡排行榜元宝奖励X次;参数1:无;参数2:次数(数值)
     *  209: 玩家等级到达X级;参数1:无;参数2:等级(数值)
     *  210:通关第X关;参数1:关卡ID;参数2:通关次数(记录已通关状态)
     *  211:扫荡关卡X次;参数1:无;参数2:次数
@@ -65,7 +65,7 @@ class sm_activeTask_type
     *  802: 累计消耗X体力;参数1:无;参数2:数量
     *  803: 累计消耗X钻石;参数1:无;参数2:数量
     *  901: 开启X次璀璨宝石箱;参数1:宝箱类型(1:普通,2:璀璨);参数2:次数
-    *  902: 每日商店购买物品X次;参数1:无;参数2:次数 default(0) 
+    *  902: 每日商店购买物品X次;参数1:无;参数2: default(0) 
     */
     public $cmd;
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-06-07 18:24:29
+ // 日期: 2024-09-27 10:27:41
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-09-19 16:07:27
+ // 日期: 2024-09-27 10:28:03
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-09-24 09:20:53
+ // 日期: 2024-09-25 17:22:01
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-09-24 09:20:53
+ // 日期: 2024-09-25 17:22:01
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-09-25 09:38:13
+ // 日期: 2024-09-25 14:35:51
 ////////////////////
 
 

+ 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-09-24 09:35:51
+ // 日期: 2024-09-26 15:35:51
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-09-24 09:35:51
+ // 日期: 2024-09-26 15:35:51
 ////////////////////
 
 

+ 3 - 3
Gameserver/App/model/Const/sm_predicate.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-09-20 10:59:24
+ // 日期: 2024-09-27 10:05:04
 ////////////////////
 
 
@@ -59,12 +59,12 @@ class sm_predicate
     public $actionType;
 
     /**
-    * @var String 行为参数1: 技能id,技能id,...  
+    * @var String 行为参数1: ...  
     */
     public $actionParam1;
 
     /**
-    * @var String 行为参数2: (buffid:概率, buffid:概率....)最多4条  
+    * @var String 行为参数2: ...  
     */
     public $actionParam2;
 

+ 5 - 5
Gameserver/App/model/Const/sm_shop_gategift.php

@@ -14,7 +14,7 @@ class sm_shop_gategift
 {
 
     /**
-    * @var Int32 礼包id  
+    * @var Int32 礼包id(关卡id)  
     */
     public $typeId;
 
@@ -29,14 +29,14 @@ class sm_shop_gategift
     public $reward;
 
     /**
-    * @var Int32 
+    * @var Int32 价格(元宝)  
     */
-    public $yuanjia;
+    public $price;
 
     /**
-    * @var Int32 现价  
+    * @var Int32 超值  
     */
-    public $curPrice;
+    public $discount;
 
     /**
     * @var Int32 限制购买次数  

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-09-24 18:05:51
+ // 日期: 2024-09-27 14:39:37
 ////////////////////
 
 

+ 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-09-24 18:03:18
+ // 日期: 2024-09-27 11:20:16
 ////////////////////
 
 

+ 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-09-24 18:03:18
+ // 日期: 2024-09-27 11:20:16
 ////////////////////
 
 

+ 28 - 28
Gameserver/App/process/ShopProc.php

@@ -78,7 +78,7 @@ class ShopProc {
         //$resultArr = array();
         switch ($type) {
             case EnumShopGift::GateGift_Shop://章节礼包
-                $gateGift = self::BuyShop_GateGift($type, $typeId, $buyNum);
+                self::BuyShop_GateGift($type, $typeId, $buyNum);
                 break;
             case EnumShopGift::Daily_Shop://每日商店
                 self::BuyShop_Daily($type, $typeId, $buyNum);
@@ -132,39 +132,39 @@ class ShopProc {
      */
 
     public static function BuyShop_GateGift($type, $typeId, $buyNum) {
-        $gateGift = array();
+        //$gateGift = array();
         my_Assert(!in_array($typeId, ctx()->privateState->gateGiftReceived), ErrCode::user_shop_NotRepeatBuy);
 
         $mo = GameConfig::shop_gategift_getItem($typeId);
         my_Assert($mo != null, ErrCode::err_const_no);
+        StoreProc::AddMultiItemInStore($mo->reward);
+//        $price = explode(';', $mo->reward);
+//        foreach ($price as $value) {
+//            $item = explode(',', $value);
+//            if (GameConfig::item_getItem($item[0])->itemType == EnumItemType::tuzhiBox) {
+//                $dic = GameConfig::item();
+//                $list = array();
+//                foreach ($dic as $id => $val) {
+//                    if ($val->itemType == EnumItemType::tuzhi) {
+//                        $list[] = $val->typeId;
+//                    }
+//                }
+//
+//                $randNum = rand(0, count($list) - 1);
+//                $tuzhiId = $list[$randNum];
+//                $gateGift[] = $tuzhiId . ',1';
+//            } else {
+//                $gateGift[] = $value;
+//            }
+//        }
 
-        $price = explode(';', $mo->reward);
-        foreach ($price as $value) {
-            $item = explode(',', $value);
-            if (GameConfig::item_getItem($item[0])->itemType == EnumItemType::tuzhiBox) {
-                $dic = GameConfig::item();
-                $list = array();
-                foreach ($dic as $id => $val) {
-                    if ($val->itemType == EnumItemType::tuzhi) {
-                        $list[] = $val->typeId;
-                    }
-                }
-
-                $randNum = rand(0, count($list) - 1);
-                $tuzhiId = $list[$randNum];
-                $gateGift[] = $tuzhiId . ',1';
-            } else {
-                $gateGift[] = $value;
-            }
-        }
-
-        foreach ($gateGift as $str) {
-            StoreProc::AddMultiItemInStore($str);
-        }
+//        foreach ($gateGift as $str) {
+//            StoreProc::AddMultiItemInStore($str);
+//        }
         ctx()->privateState->gateGiftReceived[] = $typeId;
-        ctx()->baseInfo->charge_amt += $mo->curPrice;
-
-        return $gateGift;
+        ctx()->baseInfo->Consume_Cash($mo->price);
+        
+        //return $gateGift;
     }
 
     /**