瀏覽代碼

update

master
dengbiao 4 月之前
父節點
當前提交
efeac1c038
共有 2 個檔案被更改,包括 3 行新增15 行删除
  1. +0
    -12
      md/mq.go
  2. +3
    -3
      rule/one_circles/one_circles_sign_in_green_energy_settlement.go

+ 0
- 12
md/mq.go 查看文件

@@ -36,15 +36,3 @@ type OneCirclesStructForStarLevelDividends struct {
Uid int `json:"uid"`
SignDividend float64 `json:"sign_dividend"`
}

type OneCirclesDealUserCoinStruct struct {
Kind string `json:"kind"`
Mid string `json:"mid"`
Title string `json:"title"`
TransferType int `json:"transfer_type"`
OrdId string `json:"ord_id"`
CoinId int `json:"coin_id"`
Uid int `json:"uid"`
ToUid int `json:"to_uid"`
Amount float64 `json:"amount"`
}

+ 3
- 3
rule/one_circles/one_circles_sign_in_green_energy_settlement.go 查看文件

@@ -111,7 +111,7 @@ func HandleSettlementSignInGreenEnergy(ch *rabbit.Channel, engine *xorm.Engine,

var reduceTotalGreenEnergy float64
//4.2给相应的用户加上个人的绿色积分(可用数量)
var oneCirclesDealUserCoinData = md.OneCirclesDealUserCoinStruct{
var oneCirclesDealUserCoinData = md.DealUserCoinReq{
Kind: "add",
Mid: masterId,
Title: md.OneCirclesGreenEnergySignInSettlementPersonalReward,
@@ -129,7 +129,7 @@ func HandleSettlementSignInGreenEnergy(ch *rabbit.Channel, engine *xorm.Engine,
fmt.Println("err:::::3333", err1)
return err1
}
var oneCirclesDealUserCoinDataForParents []md.OneCirclesDealUserCoinStruct
var oneCirclesDealUserCoinDataForParents []md.DealUserCoinReq
var parentRewardValue = zhios_order_relate_utils.StrToFloat64(rewardValue)
if relates != nil {
for _, relate := range *relates {
@@ -161,7 +161,7 @@ func HandleSettlementSignInGreenEnergy(ch *rabbit.Channel, engine *xorm.Engine,
}
}

oneCirclesDealUserCoinDataForParents = append(oneCirclesDealUserCoinDataForParents, md.OneCirclesDealUserCoinStruct{
oneCirclesDealUserCoinDataForParents = append(oneCirclesDealUserCoinDataForParents, md.DealUserCoinReq{
Kind: "add",
Mid: masterId,
Title: md.OneCirclesGreenEnergySignInSettlementTeamReward,


Loading…
取消
儲存