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 {
appName = set.Val
}
if mapData["pvd_oid"] != "" {
oid = utils.StrToInt64(mapData["pvd_oid"])
}
for _, item := range ol {
if mapData["reward_type"] == "2" && item.Level == 0 {
continue


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

@@ -21,6 +21,7 @@ type ZhiosTaskReward struct {
RewardType string `json:"reward_type"`
PlanType string `json:"plan_type"`
Provider string `json:"provider"`
PvdOid string `json:"pvd_oid"`
}
type AcquisitionCfg struct {
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,
"device_model": canalMsg.DeviceModel,
"reward_type": canalMsg.RewardType,
"pvd_oid": canalMsg.PvdOid,
}
svc.CommGetLvUser(eg, CommissionParam, utils.StrToInt64(canalMsg.Oid), mid, mapData)
return nil


Loading…
Cancel
Save