From a22604bb5c6a1fc02e7b5f2638c7fdb71d87bc41 Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Mon, 19 Sep 2022 15:47:06 +0800 Subject: [PATCH] fix bug --- app/controller/Wechat.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controller/Wechat.php b/app/controller/Wechat.php index b386ed9..7125103 100644 --- a/app/controller/Wechat.php +++ b/app/controller/Wechat.php @@ -78,6 +78,8 @@ class Wechat 'openid' => $wechatUser->getId(), ]); + Db::name("app_users")->where("id",$parent_id)->inc("share_count",1)->update(); + AppUserRelation::create([ 'parent_id' => $parent_id, 'user_id' => $user->id,