charge 单元测试

This commit is contained in:
hahwu 2026-05-19 19:21:18 +08:00
parent f1e4b07e02
commit 1a1be26ebd
2 changed files with 17 additions and 8 deletions

View File

@ -0,0 +1,9 @@
package unit
import "testing"
func TestChargeRes(t *testing.T) {
player := getTestPlayer(t)
//ChargeMod := player.GetChargeMod()
player.ChargeBackData()
}

View File

@ -2,15 +2,15 @@
"AppID": 0,
"LogLevel": "debug",
"LogPath": "./log",
"TCPAddr": ":3602",
"TCPAddr": ":3601",
"WSAddr": ":3567",
"RPCAddr": ":50051",
"MySqlAddr": "112.124.54.243",
"MySqlAddr": "mysql",
"MySqlPort": "3306",
"MySqlUsr": "root",
"MySqlPwd": "-pDvPOK7dp1obN8e6hxSqYl9L4FaTCJDpN60B6I8Vg==",
"MySqlPwd": "IOagNEq3C84c-20CmHEin5iODVc=",
"MaxConnNum": 20000,
"DbName": "pet_home_1",
"DbName": "merge_pet_1",
"HttpPort": ":8081",
"AppPath": "./app",
"TELOGDIR" : "./log/teLog/",
@ -24,18 +24,18 @@
"ServerName": "Merge_Pet",
"ServerStatus" : 1,
"ServerCenter" : 0,
"GameConfPath": "D:/Github/pet_home_server/src/server/gamedata/config/",
"GameConfPath": "/Github/pet_home_server/src/server/gamedata/config/",
"ListenAddr":":9002",
"CenterAddr": "127.0.0.1:7000",
"RemoteAddr":"127.0.0.1:9002",
"RedisAddr":"112.124.54.243",
"RedisAddr":"127.0.0.1",
"RedisPort" :"6379",
"RedisPwd" :"",
"RedisWriteAddr":"112.124.54.243:6379",
"RedisReadAddrs":"112.124.54.243:6379",
"RedisWriteAddr":"redis:6379",
"RedisReadAddrs":"redis:6379",
"RedisMasterName":"mymaster",
"RedisConnType":"Direct",