refactor: 1.修正api auth 2.帖子话题业务
This commit is contained in:
@@ -128,7 +128,6 @@ func (s *MyPlantService) UpdatePlant(req plantReq.UpdateMyPlant) error {
|
||||
}
|
||||
//2.修改计划
|
||||
if len(req.CarePlans) > 0 {
|
||||
//删除已经存在的计划 生成新的计划
|
||||
for _, plan := range req.CarePlans {
|
||||
err = tx.Model(&plant.CarePlan{}).Where("id = ?", plan.Id).Updates(map[string]interface{}{
|
||||
"icon": plan.Icon,
|
||||
|
||||
Reference in New Issue
Block a user