@@ -51,7 +51,7 @@ func AdminBalanceOperate(req models.AdminRewardOperateReq, doer *models.User) er | |||||
return nil | return nil | ||||
} | } | ||||
func GetCSVFailedDatas(user *models.User, records [][]string) ([]models.CSVFailedData, int) { | |||||
func GetCSVFailedDatas(admimUser *models.User, records [][]string) ([]models.CSVFailedData, int) { | |||||
var SuccessNum int | var SuccessNum int | ||||
var CSVFailedDatas []models.CSVFailedData | var CSVFailedDatas []models.CSVFailedData | ||||
var RewardOperateType models.RewardOperateType | var RewardOperateType models.RewardOperateType | ||||
@@ -77,12 +77,12 @@ func GetCSVFailedDatas(user *models.User, records [][]string) ([]models.CSVFaile | |||||
} | } | ||||
targetUserId, _ := strconv.ParseInt(userId, 10, 64) | targetUserId, _ := strconv.ParseInt(userId, 10, 64) | ||||
user, err := models.GetUserByID(targetUserId) | |||||
targetUser, err := models.GetUserByID(targetUserId) | |||||
if err != nil { | if err != nil { | ||||
CSVFailedDatas = append(CSVFailedDatas, models.CSVFailedData{pointUser, "userid not found"}) | CSVFailedDatas = append(CSVFailedDatas, models.CSVFailedData{pointUser, "userid not found"}) | ||||
continue | continue | ||||
} | } | ||||
if userName != user.Name { | |||||
if userName != targetUser.Name { | |||||
CSVFailedDatas = append(CSVFailedDatas, models.CSVFailedData{pointUser, "userName not found"}) | CSVFailedDatas = append(CSVFailedDatas, models.CSVFailedData{pointUser, "userName not found"}) | ||||
continue | continue | ||||
} | } | ||||
@@ -110,7 +110,7 @@ func GetCSVFailedDatas(user *models.User, records [][]string) ([]models.CSVFaile | |||||
Amount: amountNum, | Amount: amountNum, | ||||
Remark: remark, | Remark: remark, | ||||
RewardType: models.RewardTypePoint, | RewardType: models.RewardTypePoint, | ||||
}, user) | |||||
}, admimUser) | |||||
if err != nil { | if err != nil { | ||||
log.Error("OperatePointAccountBalance error.%v", err) | log.Error("OperatePointAccountBalance error.%v", err) | ||||
CSVFailedDatas = append(CSVFailedDatas, models.CSVFailedData{pointUser, "OperatePointAccountBalance error."}) | CSVFailedDatas = append(CSVFailedDatas, models.CSVFailedData{pointUser, "OperatePointAccountBalance error."}) | ||||
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》