Explorar el Código

update

master
dengbiao hace 3 meses
padre
commit
efeac1c038
Se han modificado 2 ficheros con 3 adiciones y 15 borrados
  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 Ver fichero

@@ -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 Ver fichero

@@ -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,


Cargando…
Cancelar
Guardar