修复某些情况下@成员无法发送通知的问题

Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
vilson 2019-10-30 11:25:51 +08:00
parent c1b148e095
commit e617ba289c

View File

@ -248,6 +248,7 @@ class Task
$prefix = config('database.prefix');
$taskCode = $task['code'];
foreach ($data['data'] as $item) {
$item = explode(' ', $item)[0];
$sql = "select tm.member_code from {$prefix}task_member as tm join {$prefix}member as m on tm.member_code = m.code where tm.task_code = '{$taskCode}' and name = '{$item}'";
$memberCurr = Db::query($sql);
if ($memberCurr) {