|
|
@@ -10,6 +10,7 @@ import ( |
|
|
|
"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" |
|
|
|
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/enum" |
|
|
|
"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 |
|
|
|
} |
|
|
|
//3.2给相应的用户加上个人的绿色积分(可用数量) |
|
|
|
err = one_circles.DealUserCoin(session, md2.DealUserCoinReq{ |
|
|
|
err = rule.DealUserCoin(session, md2.DealUserCoinReq{ |
|
|
|
Kind: "add", |
|
|
|
Mid: msg.MasterId, |
|
|
|
Title: md2.OneCirclesPersonalActiveCoinExchangeGreenEnergy, |
|
|
@@ -119,7 +120,7 @@ func handleOneCirclesActivityCoinAutoExchangeGreenEnergyConsume(msgData []byte) |
|
|
|
} |
|
|
|
|
|
|
|
//4.1给相应的用户减去个人活跃积分 |
|
|
|
err = one_circles.DealUserCoin(session, md2.DealUserCoinReq{ |
|
|
|
err = rule.DealUserCoin(session, md2.DealUserCoinReq{ |
|
|
|
Kind: "sub", |
|
|
|
Mid: msg.MasterId, |
|
|
|
Title: md2.OneCirclesPersonalActiveCoinExchangeToBeGreenEnergy, |
|
|
|