...
|
...
|
@@ -193,12 +193,14 @@ func EditAchievement(editData *protocol.RequestEditAchievement, companyid int64) |
|
|
log.Info("删除achievement_provider数据失败:%s", err)
|
|
|
return protocol.NewErrWithMessage("1")
|
|
|
}
|
|
|
if len(editData.Provider) > 0 {
|
|
|
err = addAchievementProvider(editData.Provider, achievementData.Id, o)
|
|
|
if err != nil {
|
|
|
log.Error("添加achievement_provider失败:%s", err)
|
|
|
o.Rollback()
|
|
|
return protocol.NewErrWithMessage("1")
|
|
|
}
|
|
|
}
|
|
|
err = models.IncreaseAchevementScore(companyid, newRamain-oldRemain, o)
|
|
|
if err != nil {
|
|
|
o.Rollback()
|
...
|
...
|
|