测试资源日志管理bug修复

master
zyx 5 years ago
parent 44121ed303
commit aabaa9ae01

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

Loading…
Cancel
Save