38 lines
811 B
PHP
38 lines
811 B
PHP
<?php
|
|
/**
|
|
* Created by Vim
|
|
* User: lcc
|
|
* Date: 2021/06/29
|
|
* Time: 13:47
|
|
*/
|
|
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class Receiver_customer_oplogs_model extends HD_Model
|
|
{
|
|
private $table_name = 'lc_receiver_customer_oplogs';
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct($this->table_name, 'default');
|
|
}
|
|
|
|
/**
|
|
* Notes:类型
|
|
* Created on: 2022/4/12 16:51
|
|
* Created by: dengbw
|
|
* @param int $id
|
|
* @return array|mixed
|
|
*/
|
|
public function typeAry($id = 0)
|
|
{
|
|
$arr = [0 => '小记', 1 => '发短信', 2 => '拨打号码', 3 => '创建', 4 => '到店', 5 => '试驾', 6 => '订单', 7 => '战败'];
|
|
if ($id) {
|
|
return $arr[$id];
|
|
} else {
|
|
return $arr;
|
|
}
|
|
}
|
|
|
|
}
|