20
This commit is contained in:
+3
-3
@@ -499,13 +499,13 @@ if(!function_exists('cache_get')){
|
||||
if(!$ret || $force){
|
||||
if (str_starts_with($key, 'team_user_total_')) {
|
||||
$user_id = substr($key,strlen('team_user_total_'));
|
||||
$ret = \support\think\Db::name('user_extend')->where('user_id',$user_id)->column('team_total');
|
||||
$ret = \support\think\Db::name('user_extend')->where('user_id',$user_id)->value('team_total');
|
||||
}else if (str_starts_with($key, 'team_direct_total_')) {
|
||||
$user_id = substr($key,strlen('team_direct_total_'));
|
||||
$ret = \support\think\Db::name('user_extend')->where('user_id',$user_id)->column('direct_total');
|
||||
$ret = \support\think\Db::name('user_extend')->where('user_id',$user_id)->value('direct_total');
|
||||
}else if (str_starts_with($key, 'team_vip_total_')) {
|
||||
$user_id = substr($key,strlen('team_vip_total_'));
|
||||
$ret = \support\think\Db::name('user_extend')->where('user_id',$user_id)->column('vip_total');
|
||||
$ret = \support\think\Db::name('user_extend')->where('user_id',$user_id)->value('vip_total');
|
||||
}
|
||||
cache($key,$ret);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user