客户与跟进
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
namespace config\constants;
|
||||
|
||||
class Constants
|
||||
{
|
||||
//客户分级
|
||||
public const CUSTOMER_GRADE_INITIAL = 0; // 初步接触
|
||||
public const CUSTOMER_GRADE_COMMUNICATE = 1; // 需求沟通
|
||||
public const CUSTOMER_GRADE_PLAN = 2; // 方案推进
|
||||
public const CUSTOMER_GRADE_DEAL = 3; // 成交阶段
|
||||
public const CUSTOMER_GRADE_SALES = 4; // 售后阶段
|
||||
public const CUSTOMER_GRADE_LOSS = 5; // 停滞或流失
|
||||
|
||||
public const GRADE = [
|
||||
self::CUSTOMER_GRADE_INITIAL => '初步接触',
|
||||
self::CUSTOMER_GRADE_COMMUNICATE => '需求沟通',
|
||||
self::CUSTOMER_GRADE_PLAN => '方案推进',
|
||||
self::CUSTOMER_GRADE_DEAL => '成交阶段',
|
||||
self::CUSTOMER_GRADE_SALES => '售后阶段',
|
||||
self::CUSTOMER_GRADE_LOSS => '停滞或流失',
|
||||
];
|
||||
|
||||
//客户重要性
|
||||
public const CUSTOMER_MAGNITUDE_INITIAL = 0; // 金牌商机
|
||||
public const CUSTOMER_MAGNITUDE_COMMUNICATE = 1; // 银牌商机
|
||||
public const CUSTOMER_MAGNITUDE_PLAN = 2; // 铜牌商机
|
||||
|
||||
public const MAGNITUDE = [
|
||||
self::CUSTOMER_MAGNITUDE_INITIAL => '金牌商机',
|
||||
self::CUSTOMER_MAGNITUDE_COMMUNICATE => '银牌商机',
|
||||
self::CUSTOMER_MAGNITUDE_PLAN => '铜牌商机',
|
||||
];
|
||||
|
||||
|
||||
//跟进类型
|
||||
public const CUSTOMER_FOLLOW_VISIT = 0; // 线下拜访
|
||||
public const CUSTOMER_FOLLOW_UP = 1; // 线上跟进
|
||||
|
||||
public const FOLLOW = [
|
||||
self::CUSTOMER_FOLLOW_VISIT => '线下拜访',
|
||||
self::CUSTOMER_FOLLOW_UP => '线上跟进',
|
||||
];
|
||||
}
|
||||
@@ -9,12 +9,12 @@ return [
|
||||
'driver' => 'mysql',
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 3306,
|
||||
'database' => 'root',
|
||||
'database' => 'xyh_crm',
|
||||
'username' => 'root',
|
||||
'password' => '',
|
||||
'password' => 'root',
|
||||
'unix_socket' => '',
|
||||
'charset' => 'utf8',
|
||||
'collation' => 'utf8mb4_general_ci',
|
||||
'collation' => 'utf8_unicode_ci',
|
||||
'prefix' => '',
|
||||
'strict' => true,
|
||||
'engine' => null,
|
||||
@@ -27,7 +27,7 @@ return [
|
||||
],
|
||||
],
|
||||
|
||||
'sqlite' => [
|
||||
/*'sqlite' => [
|
||||
'driver' => 'sqlite',
|
||||
'database' => '',
|
||||
'prefix' => '',
|
||||
@@ -76,6 +76,6 @@ return [
|
||||
'idle_timeout' => 60, // 连接池中连接最大空闲时间,超时后会关闭回收,直到连接数为min_connections
|
||||
'heartbeat_interval' => 50, // 连接池心跳检测时间,单位秒,建议小于60秒
|
||||
],
|
||||
],
|
||||
],*/
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
return [
|
||||
'secret' => 'Hj3$kLm8NpQrStUvXwZ1y2C4D6E8G', // 替换为高强度的密钥
|
||||
'algorithm' => 'HS256', // 加密算法
|
||||
'expire' => 3600 * 24 * 7, // 过期时间(7天)
|
||||
];
|
||||
@@ -12,4 +12,9 @@
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [];
|
||||
return [
|
||||
// 全局中间件
|
||||
'' => [
|
||||
app\middleware\AuthMiddleware::class,
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [
|
||||
'default' => [
|
||||
'password' => '',
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 6379,
|
||||
'database' => 0,
|
||||
// Connection pool, supports only Swoole or Swow drivers.
|
||||
'pool' => [
|
||||
'max_connections' => 5,
|
||||
'min_connections' => 1,
|
||||
'wait_timeout' => 3,
|
||||
'idle_timeout' => 60,
|
||||
'heartbeat_interval' => 50,
|
||||
],
|
||||
]
|
||||
];
|
||||
@@ -16,10 +16,10 @@
|
||||
* Multilingual configuration
|
||||
*/
|
||||
return [
|
||||
// Default language
|
||||
// 默认语言
|
||||
'locale' => 'zh_CN',
|
||||
// Fallback language
|
||||
// 回退语言,当前语言中无法找到翻译时则尝试使用回退语言中的翻译
|
||||
'fallback_locale' => ['zh_CN', 'en'],
|
||||
// Folder where language files are stored
|
||||
'path' => base_path() . '/resource/translations',
|
||||
];
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user