|
|
@@ -8,7 +8,6 @@ import ( |
|
|
|
"encoding/json" |
|
|
|
"errors" |
|
|
|
"fmt" |
|
|
|
"strconv" |
|
|
|
"strings" |
|
|
|
"xorm.io/xorm" |
|
|
|
) |
|
|
@@ -120,11 +119,16 @@ func BatchGetPublicPlatoonRelateCommissionByOrder(engine *xorm.Engine, masterId |
|
|
|
return nil, errors.New("更新公排关系记录失败") |
|
|
|
} |
|
|
|
} |
|
|
|
recommendUid := "" |
|
|
|
userProfile, _ := db.UserProfileFindByID(engine, param.Uid) |
|
|
|
if userProfile != nil && userProfile.ParentUid > 0 { |
|
|
|
recommendUid = zhios_order_relate_utils.IntToStr(userProfile.ParentUid) |
|
|
|
} |
|
|
|
/// |
|
|
|
resp[param.Oid] = &md.PublicPlatoonRelateCommissionResp{ |
|
|
|
Uid: param.Uid, |
|
|
|
CommonWealthBenefitUid: nowBenefitUid, |
|
|
|
DirectPushBenefitUid: strconv.Itoa(userPublicPlatoonRelation.RecommendUid), |
|
|
|
DirectPushBenefitUid: recommendUid, |
|
|
|
PendingAmount: param.PendingAmount, |
|
|
|
PendingIntegral: param.PendingIntegral, |
|
|
|
Oid: param.Oid, |
|
|
|