This commit is contained in:
knowpia
2022-09-14 15:45:49 +08:00
parent 44351cefb5
commit 578de01106

View File

@@ -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("助力失败!");