|
|
@@ -77,13 +77,15 @@ func HandleCommissionDistributionSystem(engine *xorm.Engine, args *md.RegionalAg |
|
|
|
} |
|
|
|
|
|
|
|
//查询 virtual_coin 获取虚拟货币的 “兑换比例” |
|
|
|
virtualCoin, err := db.VirtualCoinFindByParams(engine, map[string]interface{}{}) |
|
|
|
virtualCoin, err := db.VirtualCoinFindByAll(engine) |
|
|
|
if err != nil { |
|
|
|
return nil, false |
|
|
|
} |
|
|
|
var virtualCoinMap = map[int]string{} |
|
|
|
for _, v := range *virtualCoin { |
|
|
|
virtualCoinMap[v.Id] = v.ExchangeRatio |
|
|
|
if virtualCoin != nil { |
|
|
|
for _, v := range *virtualCoin { |
|
|
|
virtualCoinMap[v.Id] = v.ExchangeRatio |
|
|
|
} |
|
|
|
} |
|
|
|
//查询代理网点的代理(网点、区、市、省)信息 |
|
|
|
var parents, tempParents []map[string]interface{} |
|
|
|