lt 1 주 전
부모
커밋
faa9448003
2개의 변경된 파일16개의 추가작업 그리고 1개의 파일을 삭제
  1. 14 1
      RO_Server_Trunk-branch_0.1.39/roserver/gmweb/msg/web_paymsg.go
  2. 2 0
      操作命令/三国合区保留区服.txt

+ 14 - 1
RO_Server_Trunk-branch_0.1.39/roserver/gmweb/msg/web_paymsg.go

@@ -231,6 +231,7 @@ type ExtrasDn struct {
 	Platform  string `json:"platform"`
 	GoodsId   int32  `json:"goodsId"`
 	GoodsType int32  `json:"goodsType"`
+	Amount    string `json:"amount"`
 }
 
 type ExtrasDnIos struct {
@@ -982,6 +983,18 @@ func webPayNotify(webNtf *WebNotifyData, payAmount float32, c *gin.Context) stri
 	return "SUCCESS"
 }
 
+var LubCoinToUsd = map[string]string{
+	"0.99":  "99.00",
+	"1.99":  "199.00",
+	"2.99":  "249.00",
+	"4.99":  "449.00",
+	"9.99":  "899.00",
+	"14.99": "1290.00",
+	"19.99": "1790.00",
+	"49.99": "4690.00",
+	"99.99": "9490.00",
+}
+
 func webPayNotifyDn(cpOrderId string, Amount, sdkOrderId string) string {
 	//流程处理gmweb保存订单状态到redis中设置为 成功充值状态
 	//发送给gameserver,成功收到后设置订单状态为成功获取充值状态,如果gameserver没有收到
@@ -998,7 +1011,7 @@ func webPayNotifyDn(cpOrderId string, Amount, sdkOrderId string) string {
 		//return "FAILED"
 		return fmt.Sprintf("FAILED,cpOrderId=%v err=%v", cpOrderId, err)
 	}
-
+	Amount = LubCoinToUsd[Amount]
 	payInfo := &serverproto.PayOrderSaveInfo{}
 	err = model.GetDecodeMessage(payInfo, msgStr)
 	if err != nil {

+ 2 - 0
操作命令/三国合区保留区服.txt

@@ -2,6 +2,8 @@
 1,redis中使用命令(举例:将10003的玩家合到10001)
 redis-cli -a "tmKjD1ENs3HfZ7adzLJO!" EVAL "local keys = redis.call('HKEYS', 'CUser_ServerId:'); local count = 0; for i,key in ipairs(keys) do if redis.call('HGET', 'CUser_ServerId:', key) == '10031' then redis.call('HSET', 'CUser_ServerId:', key, '10026'); count = count + 1; end; end; return count" 0
 
+redis-cli -n 1 -a "tmKjD1ENs3HfZ7adzLJO!" EVAL "local keys = redis.call('HKEYS', 'CUser_ServerId:'); local count = 0; for i,key in ipairs(keys) do if redis.call('HGET', 'CUser_ServerId:', key) == '10031' then redis.call('HSET', 'CUser_ServerId:', key, '10026'); count = count + 1; end; end; return count" 0
+
 2,更新mongo中的x5_tk_login中的user_info中合服区的等级。
 // 更新服务器s1的玩家等级
 var server1Db = db.getSiblingDB("m5_x1_game_10001");