From 01163a4c8da40c48aecbef017974b08c703f647e Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Tue, 29 Jul 2025 09:32:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E6=9C=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/UserService.php | 1 + app/crm/service/CustomerService.php | 1 + config/constants/Constants.php | 6 +++--- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/common/service/UserService.php b/app/common/service/UserService.php index 25de588..d0d9c23 100644 --- a/app/common/service/UserService.php +++ b/app/common/service/UserService.php @@ -54,6 +54,7 @@ class UserService $ossservice = new OssService(); return [ 'id' => $user->id, + 'sn' => $user->sn, 'name' => $user->name, 'position' => $user->position, 'socialize' => $user->socialize, diff --git a/app/crm/service/CustomerService.php b/app/crm/service/CustomerService.php index 0e5ca8f..b54eeab 100644 --- a/app/crm/service/CustomerService.php +++ b/app/crm/service/CustomerService.php @@ -110,6 +110,7 @@ class CustomerService public static function getCustomer($customer, $language = 'zh_CN', $tag = false) { $customer['grade_txt'] = Util::language($language, Constants::GRADE_EN[$customer['grade']], Constants::GRADE_ZH[$customer['grade']], Constants::GRADE_RU[$customer['grade']]); + $customer['magnitude'] = ($customer['magnitude']==0)?1:$customer['magnitude']; $customer['magnitude_txt'] = Util::language($language, Constants::MAGNITUDE_EN[$customer['magnitude']], Constants::MAGNITUDE[$customer['magnitude']], Constants::MAGNITUDE_RU[$customer['magnitude']]); $customer['sex_txt'] = Util::language($language, Constants::SEX_EN[$customer['sex']], Constants::SEX[$customer['sex']], Constants::SEX_RU[$customer['sex']]); diff --git a/config/constants/Constants.php b/config/constants/Constants.php index 6797078..7b86a1d 100644 --- a/config/constants/Constants.php +++ b/config/constants/Constants.php @@ -71,9 +71,9 @@ class Constants ]; //客户重要性 - public const CUSTOMER_MAGNITUDE_INITIAL = 0; // 金牌商机 - public const CUSTOMER_MAGNITUDE_COMMUNICATE = 1; // 银牌商机 - public const CUSTOMER_MAGNITUDE_PLAN = 2; // 铜牌商机 + public const CUSTOMER_MAGNITUDE_INITIAL = 1; // 金牌商机 + public const CUSTOMER_MAGNITUDE_COMMUNICATE = 2; // 银牌商机 + public const CUSTOMER_MAGNITUDE_PLAN = 3; // 铜牌商机 public const MAGNITUDE = [ self::CUSTOMER_MAGNITUDE_INITIAL => '金牌商机',