AbstractController.class.php
1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* Open/User/Abstract
* 外部对接接口用户相关抽象类
* @author Deepseath
* @version $Id$
*/
namespace Open\Controller\User;
/**
* 外部对接接口用户相关
*/
abstract class AbstractController extends \Open\Controller\AbstractController
{
/** 对外接口:劲霸专用配置 */
protected $_KBoxing = [
// 座机
'telphoneField' => 'custom1',
// OA帐号
'accountOA' => 'custom2',
// CRM帐号
'accountCRM' => 'custom3',
// DRP 帐号
'accountDRP' => 'custom4',
// CM 帐号
'accountCM' => 'custom5',
// 订货会帐号
'accountOrderMeeting' => 'custom6',
// 导购编号
'salesNumberField' => 'custom7',
// 生日
'birthday' => 'custom8',
// 入职日期
'joinDate' => 'custom9'
];
/**
* 执行前置动作
* {@inheritDoc}
* @see \Open\Controller\AbstractController::before_action()
*/
public function before_action($action = '')
{
if (!parent::before_action($action)) {
return false;
}
return true;
}
/**
* 执行后置动作
* {@inheritDoc}
* @see \Open\Controller\AbstractController::after_action()
*/
public function after_action($action = '')
{
if (!parent::after_action($action)) {
return false;
}
return true;
}
}