|
@@ -31,13 +31,13 @@ class HuaWeiController extends Controller
|
|
|
if(!is_empty($uids)){
|
|
|
foreach ($uids as $v){
|
|
|
$res = ReadRecordService::getReadRecord($v->id);
|
|
|
- if ($res){
|
|
|
+ if (is_empty($res)){
|
|
|
$res = array_column($res,null,'bid');
|
|
|
$res = $res[66643] ?? [];
|
|
|
}
|
|
|
if (!is_empty($res)){
|
|
|
- if (isset($res['cid']) && in_array($res['cid'],[30300728,30300727,30300726,30300725,30300724,30300723] )){
|
|
|
- ReadRecordService::delReadRecordStatic($v->id [66643]);
|
|
|
+ if (isset($res['cid']) && $v->id > 0 && in_array($res['cid'],[30300728,30300727,30300726,30300725,30300724,30300723] )){
|
|
|
+ ReadRecordService::delReadRecordStatic($v->id, [66643]);
|
|
|
}
|
|
|
}
|
|
|
// $res = ReadRecordService::getReadRecord(1234598187);
|