fix bug
This commit is contained in:
@@ -53,7 +53,7 @@ class Help
|
||||
Db::name("student")->where(["id" => $student_id])->inc("mhot_count", 1)->update();
|
||||
|
||||
Db::commit();
|
||||
return show("助力成功!", SUCCESS_CODE, ["hot"=>$hot++]);
|
||||
return show("助力成功!", SUCCESS_CODE, ["hot"=>$hot+1]);
|
||||
}catch (\Exception $e) {
|
||||
Db::rollback();
|
||||
return show("助力失败!");
|
||||
|
||||
Reference in New Issue
Block a user