- 按 docs/renew-code-comment.md 将 PHP 文件头改为带边框的 Author 注释\n- 注释中的 crmeb.com 替换为 uj345.cn(代码字符串中的外链未改)\n- 新增 docs/renew-code-comment.md 说明 Made-with: Cursor
53 lines
1015 B
PHP
53 lines
1015 B
PHP
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | Author: ScottPan Team
|
|
// +----------------------------------------------------------------------
|
|
|
|
namespace app\model\message\service;
|
|
|
|
|
|
use crmeb\basic\BaseModel;
|
|
use crmeb\traits\ModelTrait;
|
|
use think\Model;
|
|
|
|
/**
|
|
* 客服留言反馈
|
|
* Class StoreServiceFeedback
|
|
* @package app\model\message\service
|
|
*/
|
|
class StoreServiceFeedback extends BaseModel
|
|
{
|
|
|
|
use ModelTrait;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $name = 'store_service_feedback';
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $pk = 'id';
|
|
|
|
/**
|
|
* @param $value
|
|
* @return false|string
|
|
*/
|
|
public function getAddTimeAttr($value)
|
|
{
|
|
return date('Y-m-d H:i:s', $value);
|
|
}
|
|
|
|
/**
|
|
* 标题搜索
|
|
* @param Model $query
|
|
* @param $value
|
|
*/
|
|
public function searchTitleAttr($query, $value)
|
|
{
|
|
$value && $query->whereLike('rela_name|phone|content|uid', "%" . $value . "%");
|
|
}
|
|
|
|
}
|