소스 검색

新增领取奖励

zhengtao 9 달 전
부모
커밋
6975df91bc
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 0
      game/config/data/discreteRuleConfig.json
  2. 1 2
      game/game_cluster/nodes/game/module/player/cashout.go

+ 1 - 0
game/config/data/discreteRuleConfig.json

@@ -9,3 +9,4 @@
 		{"ID":8,"Reward":[{"itemBaseType":1,"itemID":5,"amount":10000},{"itemBaseType":2,"itemID":6,"amount":10},{"itemBaseType":1,"itemID":1,"amount":10}],"Condition":""},
 		{"ID":9,"Reward":null,"Condition":"7"}	
 ]
+

+ 1 - 2
game/game_cluster/nodes/game/module/player/cashout.go

@@ -2,7 +2,6 @@ package player
 
 import (
 	"github.com/mhaya/game/game_cluster/internal/code"
-	"github.com/mhaya/game/game_cluster/internal/data"
 	"github.com/mhaya/game/game_cluster/internal/param"
 )
 
@@ -11,7 +10,7 @@ func (p *actorPlayer) cashout(req *param.CashOutReq) int32 {
 		return code.PlayerNotLogin
 	}
 
-	ret, ok := data.DiscreteRuleConfig.Get()
+	//	ret, ok := data.DiscreteRuleConfig.Get()
 
 	return code.OK
 }