商机修改

This commit is contained in:
2025-07-29 09:32:23 +08:00
parent 6dd22ad03c
commit 01163a4c8d
3 changed files with 5 additions and 3 deletions
+1
View File
@@ -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,
+1
View File
@@ -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']]);
+3 -3
View File
@@ -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 => '金牌商机',