|
@@ -16,30 +16,16 @@ class Mail extends Base |
|
@@ -16,30 +16,16 @@ class Mail extends Base |
|
16
|
/**
|
16
|
/**
|
|
17
|
* @param $value
|
17
|
* @param $value
|
|
18
|
* @remark :获取器userList参数处理
|
18
|
* @remark :获取器userList参数处理
|
|
19
|
- * @name :setUserListAttribute
|
|
|
|
20
|
- * @author :lyh
|
|
|
|
21
|
- * @method :post
|
|
|
|
22
|
- * @time :2023/6/21 15:57
|
|
|
|
23
|
- */
|
|
|
|
24
|
- public function setUserListAttribute($value)
|
|
|
|
25
|
- {
|
|
|
|
26
|
- // 在设置 user_list 属性时,进行处理并保存
|
|
|
|
27
|
- $this->attributes['user_list'] = ','.trim($value,',').',';
|
|
|
|
28
|
- }
|
|
|
|
29
|
-
|
|
|
|
30
|
- /**
|
|
|
|
31
|
- * @param $value
|
|
|
|
32
|
- * @remark :生成器userList参数处理
|
|
|
|
33
|
* @name :getUserListAttribute
|
19
|
* @name :getUserListAttribute
|
|
34
|
* @author :lyh
|
20
|
* @author :lyh
|
|
35
|
* @method :post
|
21
|
* @method :post
|
|
36
|
* @time :2023/6/21 15:58
|
22
|
* @time :2023/6/21 15:58
|
|
37
|
*/
|
23
|
*/
|
|
38
|
- public function getUserListAttribute($value)
|
24
|
+ public function getUserListNameAttribute()
|
|
39
|
{
|
25
|
{
|
|
40
|
$str = '';
|
26
|
$str = '';
|
|
41
|
- if(!empty($value)){
|
|
|
|
42
|
- $arr = explode(',',$value);
|
27
|
+ if(!empty($this->user_list)){
|
|
|
|
28
|
+ $arr = explode(',',$this->user_list);
|
|
43
|
$userModel = new User();
|
29
|
$userModel = new User();
|
|
44
|
$list = $userModel->list(['id'=>['in',$arr]]);
|
30
|
$list = $userModel->list(['id'=>['in',$arr]]);
|
|
45
|
foreach ($list as $v){
|
31
|
foreach ($list as $v){
|