Parcourir la source

add Reverse: for v1.1.8

tags/v1.1.8
DengBiao il y a 2 ans
Parent
révision
cc93313744
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      rule/public_platoon_relate_commission.go

+ 2
- 2
rule/public_platoon_relate_commission.go Voir le fichier

@@ -106,7 +106,7 @@ func BatchGetPublicPlatoonRelateCommissionByOrder(engine *xorm.Engine, masterId

// AddPublicPlatoonRelateCommission 新增公排用户关系记录
func AddPublicPlatoonRelateCommission(engine *xorm.Engine, masterId string, AddPublicPlatoonRelateCommissionReqList []*md.AddPublicPlatoonRelateCommissionReq) (map[string]*model.UserPublicPlatoonRelation, error) {
var resp map[string]*model.UserPublicPlatoonRelation
var resp = map[string]*model.UserPublicPlatoonRelation{}
//查找 `user_public_platoon_setting` 基础设置
userPublicPlatoonSetting, err := db.UserPublicPlatoonSettingGetOneByParams(engine, map[string]interface{}{
"key": "is_open",
@@ -160,7 +160,7 @@ func publicPlatoon(engine *xorm.Engine, uid, recommendUid int, userPublicPlatoon
}

//唯一标识符(父级id-uid-等级-位置)
var uniqueIdentifier = zhios_order_relate_utils.IntToStr(pid) + zhios_order_relate_utils.IntToStr(uid) + zhios_order_relate_utils.Float64ToStr(level) + zhios_order_relate_utils.IntToStr(position)
var uniqueIdentifier = zhios_order_relate_utils.IntToStr(pid) + "-" + zhios_order_relate_utils.IntToStr(uid) + "-" + zhios_order_relate_utils.IntToStr(int(level)) + "-" + zhios_order_relate_utils.IntToStr(position)

// 3、插入 user_public_platoon_relation 记录
now := time.Now()


Chargement…
Annuler
Enregistrer