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,