Explorar el Código

转盘兑换功能

cyzhao hace 8 meses
padre
commit
053d69f5ca

+ 7 - 7
Gameserver/App/configs/GameConfig.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-09-12 17:13:56
+ // 日期: 2024-09-13 11:23:39
 ////////////////////
 
 namespace loyalsoft;
@@ -880,19 +880,19 @@ class GameConfig {
     }
     /**
     * 人参果兑换稀有物资表
-    * @return \activity_lotteryItemExchange
+    * @return \activity_lotteryitem_exchange
     */
-    public static function activity_lotteryItemExchange()
+    public static function activity_lotteryitem_exchange()
     { 
         static $a = null; 
-        return self::initValue($a, 'activity_lotteryItemExchange');
+        return self::initValue($a, 'activity_lotteryitem_exchange');
     }
     /**
-    * @return \sm_activity_lotteryItemExchange activity_lotteryItemExchange item数据 
+    * @return \sm_activity_lotteryitem_exchange activity_lotteryitem_exchange item数据 
     */
-    public static function activity_lotteryItemExchange_getItem($itemid)
+    public static function activity_lotteryitem_exchange_getItem($itemid)
     { 
-        return self::get_hash_item('activity_lotteryItemExchange', $itemid);
+        return self::get_hash_item('activity_lotteryitem_exchange', $itemid);
     }
     /**
     * 当前版本(时间戳)

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-09-12 17:13:56
+ // 日期: 2024-09-13 11:23:39
 ////////////////////
 
 /**
@@ -878,19 +878,19 @@ class GameConfig {
     }
     /**
     * 人参果兑换稀有物资表
-    * @return \activity_lotteryItemExchange
+    * @return \activity_lotteryitem_exchange
     */
-    public static function activity_lotteryItemExchange()
+    public static function activity_lotteryitem_exchange()
     { 
         static $a = null; 
-        return self::initValue($a, 'activity_lotteryItemExchange');
+        return self::initValue($a, 'activity_lotteryitem_exchange');
     }
     /**
-    * @return \sm_activity_lotteryItemExchange activity_lotteryItemExchange item数据 
+    * @return \sm_activity_lotteryitem_exchange activity_lotteryitem_exchange item数据 
     */
-    public static function activity_lotteryItemExchange_getItem($itemid)
+    public static function activity_lotteryitem_exchange_getItem($itemid)
     { 
-        return self::get_hash_item('activity_lotteryItemExchange', $itemid);
+        return self::get_hash_item('activity_lotteryitem_exchange', $itemid);
     }
     /**
     * 当前版本(时间戳)

+ 42 - 0
Gameserver/App/model/Const/sm_activity_lotteryitem_exchange.php

@@ -0,0 +1,42 @@
+<?php
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2024-09-12 17:11:58
+////////////////////
+
+
+/**
+ * Static Model activity_lotteryitem_exchange 人参果兑换稀有物资表
+ */
+class sm_activity_lotteryitem_exchange
+{
+
+    /**
+    * @var Int32 用途未知!!请到数据库中添加字段注释。  
+    */
+    public $id;
+
+    /**
+    * @var Int32 兑换最大次数 default(0) 
+    */
+    public $exchangeNum;
+
+    /**
+    * @var String 消耗人身果信息  
+    */
+    public $cost;
+
+    /**
+    * @var String 兑换奖品信息  
+    */
+    public $reward;
+
+    /**
+    * @var String 描述  
+    */
+    public $desc;
+
+}
+

+ 42 - 0
Gameserver/App/model/Const/sm_cfg_activity_lotteryitem_exchange.php

@@ -0,0 +1,42 @@
+<?php
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2024-09-12 17:11:58
+////////////////////
+
+
+/**
+ * Static Model cfg_activity_lotteryitem_exchange 人参果兑换稀有物资表
+ */
+class sm_cfg_activity_lotteryitem_exchange
+{
+
+    /**
+    * @var Int32 用途未知!!请到数据库中添加字段注释。  
+    */
+    public $id;
+
+    /**
+    * @var Int32 兑换最大次数 default(0) 
+    */
+    public $exchangeNum;
+
+    /**
+    * @var String 消耗人身果信息  
+    */
+    public $cost;
+
+    /**
+    * @var String 兑换奖品信息  
+    */
+    public $reward;
+
+    /**
+    * @var String 描述  
+    */
+    public $desc;
+
+}
+

+ 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-12 11:05:50
+ // 日期: 2024-09-13 09:05:50
 ////////////////////
 
 

+ 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-09 10:25:49
+ // 日期: 2024-09-13 10:35:50
 ////////////////////
 
 

+ 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-09 10:25:49
+ // 日期: 2024-09-13 10:35:50
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-08-29 16:08:16
+ // 日期: 2024-09-13 10:58:56
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/process/ActiveProc.php

@@ -49,7 +49,7 @@ class ActiveProc {
         $arr = array_count_values(ctx()->privateState->lotteryExchange);
         $num = $arr[$id];
         
-        $mo = GameConfig::activity_lotteryItemExchange_getItem($id);       
+        $mo = GameConfig::activity_lotteryitem_exchange_getItem($id);       
         my_Assert($mo != null,ErrCode::err_const_no);
         my_Assert($num < $mo->exchangeNum,ErrCode::active_lotteryExchangeNumLimit);