This commit is contained in:
knowpia
2022-09-14 10:09:29 +08:00
parent 985f7f1743
commit 8e3dd73f49
3 changed files with 38 additions and 1 deletions

View File

@@ -152,6 +152,7 @@ class Wechat
//为用户增加助力值
$zhuLi = env("ZHULI_VALUE")??150;
Db::name("student")->inc("hot",$zhuLi)->where("id",$order_detail->id)->update();
Db::name("student")->inc("hot_count",1)->where("id",$order_detail->id)->update();
} else {
$fail('Order not exists.');