53 lines
1.1 KiB
PHP
53 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Notes:车主表
|
|
* Created on: 2022/6/13 10:31
|
|
* Created by: dengbw
|
|
*/
|
|
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class Receiver_owners_model extends HD_Model
|
|
{
|
|
private $table_name = 'lc_receiver_owners';
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct($this->table_name, 'default');
|
|
}
|
|
|
|
/**
|
|
* Notes:状态
|
|
* Created on: 2022/7/22 10:31
|
|
* Created by: dengbw
|
|
* @param string $id
|
|
* @return array
|
|
*/
|
|
public function statusAry($id = '')
|
|
{
|
|
$arr = [0 => '待回访', 1 => '已回访'];
|
|
if (strlen($id)) {
|
|
return $arr[$id];
|
|
} else {
|
|
return $arr;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Notes:企微好友状态
|
|
* Created on: 2022/5/10 10:00
|
|
* Created by: dengbw
|
|
* @param int $id
|
|
* @return array|mixed
|
|
*/
|
|
public function wxqyAry($id = '')
|
|
{
|
|
$arr = [0 => '未添加', 1 => '已添加', -1 => '删除'];
|
|
if (strlen($id)) {
|
|
return $arr[$id];
|
|
} else {
|
|
return $arr;
|
|
}
|
|
}
|
|
|
|
} |