瀏覽代碼

update

master
DengBiao 1 年之前
父節點
當前提交
cdc4dd2685
共有 1 個檔案被更改,包括 38 行新增1 行删除
  1. +38
    -1
      svc/small_public_platoon_relate_commission.go

+ 38
- 1
svc/small_public_platoon_relate_commission.go 查看文件

@@ -9,6 +9,7 @@ import (
"encoding/json"
"errors"
"fmt"
"strconv"
"strings"
"xorm.io/xorm"
)
@@ -220,8 +221,44 @@ func CalcSmallPublicPlatoonRelateLaXinReward(engine *xorm.Engine, masterId strin
}
}
value, _ := zhios_order_relate_utils.InterfaceToString(detail[k].Val)
var uid int
switch k {
case 0:
uid = userPublicPlatoonRelation.FatherUid1
break
case 1:
uid = userPublicPlatoonRelation.FatherUid2
break
case 2:
uid = userPublicPlatoonRelation.FatherUid3
break
case 3:
uid = userPublicPlatoonRelation.FatherUid4
break
case 4:
uid = userPublicPlatoonRelation.FatherUid5
break
case 5:
uid = userPublicPlatoonRelation.FatherUid6
break
case 6:
uid = userPublicPlatoonRelation.FatherUid7
break
case 7:
uid = userPublicPlatoonRelation.FatherUid8
break
case 8:
uid = userPublicPlatoonRelation.FatherUid9
break
}

if uid <= 0 {
//TODO::不需要讲理
continue
}

tmp := md.CalcSmallPublicPlatoonRelateLaXinReward{
Uid: v,
Uid: strconv.Itoa(uid),
CoinId: m.CoinId,
Value: value,
}


Loading…
取消
儲存