|
...
|
...
|
@@ -16,30 +16,16 @@ class Mail extends Base |
|
|
|
/**
|
|
|
|
* @param $value
|
|
|
|
* @remark :获取器userList参数处理
|
|
|
|
* @name :setUserListAttribute
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/6/21 15:57
|
|
|
|
*/
|
|
|
|
public function setUserListAttribute($value)
|
|
|
|
{
|
|
|
|
// 在设置 user_list 属性时,进行处理并保存
|
|
|
|
$this->attributes['user_list'] = ','.trim($value,',').',';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param $value
|
|
|
|
* @remark :生成器userList参数处理
|
|
|
|
* @name :getUserListAttribute
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/6/21 15:58
|
|
|
|
*/
|
|
|
|
public function getUserListAttribute($value)
|
|
|
|
public function getUserListNameAttribute()
|
|
|
|
{
|
|
|
|
$str = '';
|
|
|
|
if(!empty($value)){
|
|
|
|
$arr = explode(',',$value);
|
|
|
|
if(!empty($this->user_list)){
|
|
|
|
$arr = explode(',',$this->user_list);
|
|
|
|
$userModel = new User();
|
|
|
|
$list = $userModel->list(['id'=>['in',$arr]]);
|
|
|
|
foreach ($list as $v){
|
...
|
...
|
|