We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
acct_middleware.go 第151行,修改前后生成的语句区别如下,问题表现为所有用户的流量信息都被更改了。 _, err = cxt.Session.Cols("available_flow", "available_time").Update(&user) UPDATE rad_user SET available_time = ?, available_flow = ? []interface {}{0, 197384046}
rad_user
available_time
available_flow
_, err = cxt.Session.ID(user.Id).Cols("available_flow", "available_time").Update(&user) UPDATE rad_user SET available_time = ?, available_flow = ? WHERE id=? []interface {}{0, 197384046, 361}
id
The text was updated successfully, but these errors were encountered:
3Q
Sorry, something went wrong.
No branches or pull requests
acct_middleware.go
第151行,修改前后生成的语句区别如下,问题表现为所有用户的流量信息都被更改了。
_, err = cxt.Session.Cols("available_flow", "available_time").Update(&user)
UPDATE
rad_user
SETavailable_time
= ?,available_flow
= ? []interface {}{0, 197384046}_, err = cxt.Session.ID(user.Id).Cols("available_flow", "available_time").Update(&user)
UPDATE
rad_user
SETavailable_time
= ?,available_flow
= ? WHEREid
=? []interface {}{0, 197384046, 361}The text was updated successfully, but these errors were encountered: