瀏覽代碼

升级表字段

cyzhao 4 年之前
父節點
當前提交
5f56365434

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-03-18 11:02:29
+ // 日期: 2021-03-18 16:33:38
 ////////////////////
 
 /**

+ 1 - 1
Gameserver/Amfphp/model/Const/sm_item_base.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-03-17 15:36:15
+ // 日期: 2021-03-18 15:59:39
 ////////////////////
 
 

+ 1 - 1
Gameserver/Amfphp/model/Const/sm_item_yanling.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-03-18 10:37:22
+ // 日期: 2021-03-18 16:08:48
 ////////////////////
 
 

+ 3 - 3
Gameserver/Amfphp/model/Const/sm_yanlingLeve.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2021-03-18 10:55:10
+ // 日期: 2021-03-18 16:14:22
 ////////////////////
 
 
@@ -19,12 +19,12 @@ class sm_yanlingLeve
     public $id;
 
     /**
-    * @var String 金币消耗  
+    * @var Int32 金币消耗 default(0) 
     */
     public $goldCost;
 
     /**
-    * @var String 资源点消耗  
+    * @var Int32 资源点消耗 default(0) 
     */
     public $pointCost;
 

+ 13 - 13
Gameserver/Amfphp/process/HeroProc.php

@@ -1041,18 +1041,18 @@ class HeroProc {
                              
         $maxLv = $curlv + $type;
 
-        for ($index = $curlv; $index < $maxLv; $index++) {
-            $mo = GameConfig::yanlingLeve_getItem($index);
-            $costList = explode(';', $mo->cost);
-            foreach ($costList as $item) {
-                $list = explode(',', $item);
-                if ($list[0] == META_GOLD_ITEMID) {//扣金币
-                    Data_UserGame::Consume_Gold($req->userInfo->game->baseInfo, $list[1]);
-                } elseif ($list[0] == META_RESPOINT_ITEMID) {//扣除资源点
-                    Data_UserGame::Consume_ResPoint($req->userInfo->game->baseInfo, $list[1]);
-                }
-            }
-        }     
+//        for ($index = $curlv; $index < $maxLv; $index++) {
+//            $mo = GameConfig::yanlingLeve_getItem($index);
+//            $costList = explode(';', $mo->cost);
+//            foreach ($costList as $item) {
+//                $list = explode(',', $item);
+//                if ($list[0] == META_GOLD_ITEMID) {//扣金币
+//                    Data_UserGame::Consume_Gold($req->userInfo->game->baseInfo, $list[1]);
+//                } elseif ($list[0] == META_RESPOINT_ITEMID) {//扣除资源点
+//                    Data_UserGame::Consume_ResPoint($req->userInfo->game->baseInfo, $list[1]);
+//                }
+//            }
+//        }     
         $goldNum = 0; 
         $pointNum = 0; 
         for ($index = $curlv; $index < $maxLv; $index++) {           
@@ -1060,7 +1060,7 @@ class HeroProc {
                 return Resp::err(ErrCode::hero_yanling_levelconst_no);
             }
             $mo = GameConfig::yanlingLeve_getItem($index);
-            $cost = $mo->goldCost.';'.$mo->pointCost;
+            $cost = '1,'.$mo->goldCost.';'. '8,'.$mo->pointCost;
             
             $costList = explode(';',$cost);             
             foreach ($costList as $item) {