Commit 4ea144af by huangchengyi

1.0

parent 12df61aa
Showing with 1 additions and 1 deletions
......@@ -324,7 +324,7 @@ func (d *dao) DongAddScore(ctx context.Context,com_credits_id int64)(affectNum i
logic.Loginfo("更新动态总分出错"+err.Error(),"sum_dong")
}
affectNum,_ = row.RowsAffected()
defer d.db.Close()
//defer d.db.Close() 不能函数里面关闭数据库连接
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment