From fcb5b3e7bcb8a11983382494f47e52692dd0a853 Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 15 Sep 2022 17:13:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A9=E5=8A=9B=E6=9B=BE=E7=BB=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/Wechat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/Wechat.php b/app/controller/Wechat.php index c3bbc70..0c68639 100644 --- a/app/controller/Wechat.php +++ b/app/controller/Wechat.php @@ -162,8 +162,8 @@ class Wechat $order_detail->paid(); //为用户增加助力值 $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(); + 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(); } return $fail('Order not exists.'); });