Browse Source

更新

one_orenge
huangjiajun 4 months ago
parent
commit
415fbcb1c7
3 changed files with 5 additions and 0 deletions
  1. +3
    -0
      app/svc/svc_comm_deal_commission.go
  2. +1
    -0
      consume/md/md.go
  3. +1
    -0
      consume/zhios_relate_reward_exchange.go

+ 3
- 0
app/svc/svc_comm_deal_commission.go View File

@@ -140,6 +140,9 @@ func CommSettleDone(eg *xorm.Engine, pvd string, oid int64, masterId string, map
if set != nil { if set != nil {
appName = set.Val appName = set.Val
} }
if mapData["pvd_oid"] != "" {
oid = utils.StrToInt64(mapData["pvd_oid"])
}
for _, item := range ol { for _, item := range ol {
if mapData["reward_type"] == "2" && item.Level == 0 { if mapData["reward_type"] == "2" && item.Level == 0 {
continue continue


+ 1
- 0
consume/md/md.go View File

@@ -21,6 +21,7 @@ type ZhiosTaskReward struct {
RewardType string `json:"reward_type"` RewardType string `json:"reward_type"`
PlanType string `json:"plan_type"` PlanType string `json:"plan_type"`
Provider string `json:"provider"` Provider string `json:"provider"`
PvdOid string `json:"pvd_oid"`
} }
type AcquisitionCfg struct { type AcquisitionCfg struct {
Id string `json:"id"` Id string `json:"id"`


+ 1
- 0
consume/zhios_relate_reward_exchange.go View File

@@ -93,6 +93,7 @@ func handleZhiosRelateRewardExchange(msg []byte) error {
"title": title, "title": title,
"device_model": canalMsg.DeviceModel, "device_model": canalMsg.DeviceModel,
"reward_type": canalMsg.RewardType, "reward_type": canalMsg.RewardType,
"pvd_oid": canalMsg.PvdOid,
} }
svc.CommGetLvUser(eg, CommissionParam, utils.StrToInt64(canalMsg.Oid), mid, mapData) svc.CommGetLvUser(eg, CommissionParam, utils.StrToInt64(canalMsg.Oid), mid, mapData)
return nil return nil


Loading…
Cancel
Save