From 49bf7ba4edd45ef08673ac34e38021a1794931f0 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Sun, 18 May 2025 22:01:35 +0800 Subject: [PATCH] 0518 --- api/controllers/wxapp/licheb/User.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api/controllers/wxapp/licheb/User.php b/api/controllers/wxapp/licheb/User.php index ca6b3367..9ab44c6a 100644 --- a/api/controllers/wxapp/licheb/User.php +++ b/api/controllers/wxapp/licheb/User.php @@ -135,7 +135,6 @@ class User extends Wxapp */ protected function get() { - $this->add_user_score(); $uid = $this->session['uid']; $biz_id = $this->session['new_biz_id'] ? $this->session['new_biz_id'] : intval($this->session['biz_id']); @@ -147,8 +146,12 @@ class User extends Wxapp $this->logout(); throw new Exception('门店不存在', API_CODE_FAIL); } - $group_arr = $this->app_user_model->get_group(); + if(in_array($biz['type'],[1,2])){ + $this->add_user_score(); + } + + $group_arr = $this->app_user_model->get_group() $group_name = $group_arr[$user['group_id']] ? $group_arr[$user['group_id']] : ''; //获取拨打电话