This commit is contained in:
2022-09-15 17:14:35 +08:00
parent fcb5b3e7bc
commit 999fbde697

View File

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