APPLE 3 лет назад
Родитель
Сommit
a8039892e5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Services/Common/MemberService.php

+ 1 - 1
app/Services/Common/MemberService.php

@@ -391,7 +391,7 @@ class MemberService extends BaseService
             return $data;
         }
 
-        $data =  $this->model->where(['parent_id'=> $userId, 'mark'=> 1])->count('id');
+        $data =  $this->model->where(['parent_id'=> $userId, 'mark'=> 1,'status'=>1])->count('id');
         if($data){
             RedisService::set($cacheKey, $data, rand(3, 5));
         }