|
@@ -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) {
|