|
@@ -11,6 +11,7 @@ namespace App\Transformers\Circle;
|
|
|
|
|
|
use App\Models\InterestCircle;
|
|
|
use App\Models\InterestCircleUser;
|
|
|
+use Illuminate\Support\Facades\Log;
|
|
|
use Illuminate\Support\Facades\Redis;
|
|
|
use League\Fractal\TransformerAbstract;
|
|
|
|
|
@@ -48,6 +49,7 @@ class DetailTransformer extends TransformerAbstract
|
|
|
public function isBlack($uid, $circleId)
|
|
|
{
|
|
|
$info = InterestCircleUser::where([['circle_id', $circleId], ['uid', $uid], ['is_black', 1]])->first();
|
|
|
+ Log::debug('blacklist:'.json_encode($info));
|
|
|
return $info ? 1 : 0;
|
|
|
}
|
|
|
|