浏览代码

update

master
shenjiachi 2 周前
父节点
当前提交
3289072d36
共有 2 个文件被更改,包括 6 次插入4 次删除
  1. +4
    -2
      app/hdl/institutional_management/egg_energy/hdl_user_coin.go
  2. +2
    -2
      app/svc/public_platoon/svc_relation_ship_map.go

+ 4
- 2
app/hdl/institutional_management/egg_energy/hdl_user_coin.go 查看文件

@@ -44,7 +44,8 @@ func GetActivePointsUserCoinList(c *gin.Context) {
CoinID: 2,
Name: "团队活跃账户币",
}
kindList = append(kindList, kind1, kind2)
kindList[0] = kind1
kindList[1] = kind2

// 默认查询第一种货币持有数量列表
if req.Kind == 0 {
@@ -201,7 +202,8 @@ func GetGreenEnergyUserCoinList(c *gin.Context) {
CoinID: 4,
Name: "团队绿色能量币",
}
kindList = append(kindList, kind1, kind2)
kindList[0] = kind1
kindList[1] = kind2

// 默认查询第一种货币持有数量列表
if req.Kind == 0 {


+ 2
- 2
app/svc/public_platoon/svc_relation_ship_map.go 查看文件

@@ -114,11 +114,11 @@ func ExchangeUserPosition(engine *xorm.Engine, relation1, relation2 *model.Publi
return zhios_order_relate_logx.Error(err)
}

_, err = session.Where("id = ?", relation1.Id).Cols(forceColumns...).Update(session, &relation1)
_, err = session.ID(relation1.Id).Cols(forceColumns...).Update(relation1)
if err != nil {
return zhios_order_relate_logx.Error(err)
}
_, err = session.Where("id = ?", relation2.Id).Cols(forceColumns...).Update(session, &relation2)
_, err = session.ID(relation2.Id).Cols(forceColumns...).Update(relation2)
if err != nil {
return zhios_order_relate_logx.Error(err)
}


正在加载...
取消
保存