|
@@ -18,6 +18,7 @@ use App\Models\User\WxUserFollow;
|
|
|
use App\Models\User\WxUserTemp;
|
|
|
use App\Models\User\WxUserWithdrawal;
|
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
+use App\Models\Ask\Blogger;
|
|
|
|
|
|
class StatisticUtils{
|
|
|
|
|
@@ -112,6 +113,12 @@ class StatisticUtils{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public static function user_blogger_status($uid){
|
|
|
+ return (int)Cache::remember('user:blogger:status:'.$uid, 5, function () use($uid){
|
|
|
+ return Blogger::where('user_id',$uid)->value('status');
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
public static function user_follow_count($uid){
|
|
|
return (int)Cache::remember('user:follow:count:'.$uid, 3600, function () use($uid){
|
|
|
return WxUserFollow::where('user_id',$uid)->count();
|