|
|
|
@ -31,7 +31,7 @@ class Customer extends ApiCommon
|
|
|
|
|
{
|
|
|
|
|
$action = [
|
|
|
|
|
'permission' => ['exceldownload', 'setfollow', 'delete'],
|
|
|
|
|
'allow' => ['read', 'system', 'count', 'poolauthority', 'level']
|
|
|
|
|
'allow' => ['read', 'system', 'count', 'poolauthority', 'level','type']
|
|
|
|
|
];
|
|
|
|
|
Hook::listen('check_auth', $action);
|
|
|
|
|
$request = Request::instance();
|
|
|
|
@ -1195,7 +1195,7 @@ class Customer extends ApiCommon
|
|
|
|
|
* @since 2021-03-29
|
|
|
|
|
* @author fanqi
|
|
|
|
|
*/
|
|
|
|
|
public function Type()
|
|
|
|
|
public function type()
|
|
|
|
|
{
|
|
|
|
|
$data = db('admin_field')->where(['types' => 'crm_customer', 'field' => 'crm_lthugd'])->value('options');
|
|
|
|
|
|
|
|
|
|