@@ -10,6 +10,7 @@ import ( | |||||
"code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit" | "code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit" | ||||
db2 "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/db" | db2 "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/db" | ||||
md2 "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/md" | md2 "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/md" | ||||
"code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule" | |||||
"code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule/one_circles" | "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule/one_circles" | ||||
"code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule/one_circles/enum" | "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule/one_circles/enum" | ||||
"code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule/one_circles/svc" | "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule/one_circles/svc" | ||||
@@ -102,7 +103,7 @@ func handleOneCirclesActivityCoinAutoExchangeGreenEnergyConsume(msgData []byte) | |||||
return err1 | return err1 | ||||
} | } | ||||
//3.2给相应的用户加上个人的绿色积分(可用数量) | //3.2给相应的用户加上个人的绿色积分(可用数量) | ||||
err = one_circles.DealUserCoin(session, md2.DealUserCoinReq{ | |||||
err = rule.DealUserCoin(session, md2.DealUserCoinReq{ | |||||
Kind: "add", | Kind: "add", | ||||
Mid: msg.MasterId, | Mid: msg.MasterId, | ||||
Title: md2.OneCirclesPersonalActiveCoinExchangeGreenEnergy, | Title: md2.OneCirclesPersonalActiveCoinExchangeGreenEnergy, | ||||
@@ -119,7 +120,7 @@ func handleOneCirclesActivityCoinAutoExchangeGreenEnergyConsume(msgData []byte) | |||||
} | } | ||||
//4.1给相应的用户减去个人活跃积分 | //4.1给相应的用户减去个人活跃积分 | ||||
err = one_circles.DealUserCoin(session, md2.DealUserCoinReq{ | |||||
err = rule.DealUserCoin(session, md2.DealUserCoinReq{ | |||||
Kind: "sub", | Kind: "sub", | ||||
Mid: msg.MasterId, | Mid: msg.MasterId, | ||||
Title: md2.OneCirclesPersonalActiveCoinExchangeToBeGreenEnergy, | Title: md2.OneCirclesPersonalActiveCoinExchangeToBeGreenEnergy, | ||||
@@ -10,6 +10,7 @@ import ( | |||||
"code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit" | "code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit" | ||||
db2 "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/db" | db2 "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/db" | ||||
md2 "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/md" | md2 "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/md" | ||||
"code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule" | |||||
"code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule/one_circles" | "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule/one_circles" | ||||
"code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule/one_circles/enum" | "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule/one_circles/enum" | ||||
"code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule/one_circles/svc" | "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule/one_circles/svc" | ||||
@@ -103,7 +104,7 @@ func handleOneCirclesActivityCoinAutoExchangeGreenEnergyForTeamConsume(msgData [ | |||||
return err1 | return err1 | ||||
} | } | ||||
//3.2给相应的用户加上个人的绿色积分(结算数量) | //3.2给相应的用户加上个人的绿色积分(结算数量) | ||||
err = one_circles.DealUserCoin(session, md2.DealUserCoinReq{ | |||||
err = rule.DealUserCoin(session, md2.DealUserCoinReq{ | |||||
Kind: "add", | Kind: "add", | ||||
Mid: msg.MasterId, | Mid: msg.MasterId, | ||||
Title: md2.OneCirclesTeamActiveCoinExchangeGreenEnergy, | Title: md2.OneCirclesTeamActiveCoinExchangeGreenEnergy, | ||||
@@ -120,7 +121,7 @@ func handleOneCirclesActivityCoinAutoExchangeGreenEnergyForTeamConsume(msgData [ | |||||
} | } | ||||
//4.1给相应的用户减去团队活跃积分 | //4.1给相应的用户减去团队活跃积分 | ||||
err = one_circles.DealUserCoin(session, md2.DealUserCoinReq{ | |||||
err = rule.DealUserCoin(session, md2.DealUserCoinReq{ | |||||
Kind: "sub", | Kind: "sub", | ||||
Mid: msg.MasterId, | Mid: msg.MasterId, | ||||
Title: md2.OneCirclesTeamActiveCoinExchangeToBeGreenEnergy, | Title: md2.OneCirclesTeamActiveCoinExchangeToBeGreenEnergy, | ||||
@@ -8,6 +8,7 @@ import ( | |||||
"applet/consume/md" | "applet/consume/md" | ||||
"code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit" | "code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit" | ||||
md2 "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/md" | md2 "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/md" | ||||
"code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule" | |||||
"code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule/one_circles" | "code.fnuoos.com/go_rely_warehouse/zyos_go_order_relate_rule.git/rule/one_circles" | ||||
"encoding/json" | "encoding/json" | ||||
"errors" | "errors" | ||||
@@ -74,7 +75,7 @@ func handleOneCirclesSettlementPublicGiveActivityCoinConsume(msgData []byte) err | |||||
}() | }() | ||||
session.Begin() | session.Begin() | ||||
err = one_circles.DealUserCoin(session, md2.DealUserCoinReq{ | |||||
err = rule.DealUserCoin(session, md2.DealUserCoinReq{ | |||||
Kind: "add", | Kind: "add", | ||||
Mid: msg.Mid, | Mid: msg.Mid, | ||||
Title: msg.Title, | Title: msg.Title, | ||||
@@ -45,6 +45,7 @@ require ( | |||||
) | ) | ||||
require ( | require ( | ||||
filippo.io/edwards25519 v1.1.0 // indirect | |||||
github.com/KyleBanks/depth v1.2.1 // indirect | github.com/KyleBanks/depth v1.2.1 // indirect | ||||
github.com/PuerkitoBio/purell v1.1.1 // indirect | github.com/PuerkitoBio/purell v1.1.1 // indirect | ||||
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect | github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect | ||||