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