|
@@ -218,8 +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::clear("caches:member:collect:{$userId}_{$type}_1");
|
|
|
|
|
- RedisService::clear("caches:member:collect:{$userId}_{$type}_2");
|
|
|
|
|
|
|
+ RedisService::clear("caches:member:collect:{$userId}_1_1");
|
|
|
|
|
+ RedisService::clear("caches:member:collect:{$userId}_1_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()]);
|
|
|
|
|
|
|
@@ -295,7 +295,7 @@ class MemberCollectService extends BaseService
|
|
|
/**
|
|
/**
|
|
|
* 获取(被)收藏/关注/点赞数量
|
|
* 获取(被)收藏/关注/点赞数量
|
|
|
* @param $userId 用户ID
|
|
* @param $userId 用户ID
|
|
|
- * @param int $type 类型:1-关注,2-收藏,3-点赞喜欢
|
|
|
|
|
|
|
+ * @param int $type 类型:1-关注
|
|
|
* @param int $ctype 查询类型:1-被关注/收藏/点赞,2-关注/收藏/点赞
|
|
* @param int $ctype 查询类型:1-被关注/收藏/点赞,2-关注/收藏/点赞
|
|
|
* @return array|mixed
|
|
* @return array|mixed
|
|
|
*/
|
|
*/
|