资源日志bug修复

master
zyx 5 years ago
parent aabaa9ae01
commit f4bc470156

@ -199,9 +199,14 @@ class TestResourceController extends ThinkController
$arrUserId = array_column($data,'id'); $arrUserId = array_column($data,'id');
$logId = implode(',',$arrUserId); $logId = implode(',',$arrUserId);
$logRead = M('protect_log_read','tab_') if ($logId) {
->where("log_id IN({$logId}) and promote_id = {$promote_id}") $logRead = M('protect_log_read','tab_')
->select(); ->where("log_id IN({$logId}) and promote_id = {$promote_id}")
->select();
}
else {
$logRead = [];
}
$upsetData = array_column($logRead,'log_id'); $upsetData = array_column($logRead,'log_id');

Loading…
Cancel
Save