This commit is contained in:
mkm 2024-01-15 19:59:17 +08:00
parent 372459408a
commit b45b3bf1e7

View File

@ -125,13 +125,13 @@ class TaskStages extends CommonModel
} }
$task['exchange_info'] = []; $task['exchange_info'] = [];
$arr = ''; $arr = '';
if ($task['exchange_list'] && $task['transferred']) { // if ($task['exchange_list'] && $task['transferred']) {
$arr = $task['exchange_list'] . ',' . $task['transferred']; // $arr = $task['exchange_list'] . ',' . $task['transferred'];
} elseif ($task['exchange_list']) { // } elseif ($task['exchange_list']) {
$arr = $task['exchange_list']; $arr = $task['exchange_list'];
} elseif ($task['transferred']) { // } elseif ($task['transferred']) {
$arr = $task['transferred']; // $arr = $task['transferred'];
} // }
$arr = array_unique(explode(',', $arr)); $arr = array_unique(explode(',', $arr));
$arr2 = explode(',', $task['copied_list']); $arr2 = explode(',', $task['copied_list']);
$task['exchange_info'] = MemberAccount::whereIn('member_code', $arr)->field('member_code,name,avatar')->select(); $task['exchange_info'] = MemberAccount::whereIn('member_code', $arr)->field('member_code,name,avatar')->select();