wesmiler 2 years ago
parent
commit
a8d5622818
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Services/Api/MemberCollectService.php

+ 2 - 1
app/Services/Api/MemberCollectService.php

@@ -218,7 +218,8 @@ class MemberCollectService extends BaseService
         $sourceId = $liveId? $liveId : $videoId;
         $sourceId = $liveId? $liveId : $videoId;
         RedisService::clear("caches:member:collect:u{$userId}_c{$collectUid}_{$type}");
         RedisService::clear("caches:member:collect:u{$userId}_c{$collectUid}_{$type}");
         RedisService::clear("caches:member:fans:{$userId}_{$sourceId}_{$sourceType}");
         RedisService::clear("caches:member:fans:{$userId}_{$sourceId}_{$sourceType}");
-        RedisService::keyDel("caches:member:collect:{$userId}_{$type}*");
+        RedisService::clear("caches:member:collect:{$userId}_{$type}_1");
+        RedisService::clear("caches:member:collect:{$userId}_{$type}_2");
 
 
         $this->model->where(['user_id'=> $collectUid,'collect_uid'=> $userId])->update(['is_return'=> $data['is_return'],'update_time'=>time()]);
         $this->model->where(['user_id'=> $collectUid,'collect_uid'=> $userId])->update(['is_return'=> $data['is_return'],'update_time'=>time()]);