Browse Source

fix #1296 只有访客和默认会员有试看功能

magicblack 1 week ago
parent
commit
fd96a36cd9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/index/controller/Base.php

+ 2 - 2
application/index/controller/Base.php

@@ -223,7 +223,7 @@ class Base extends All
             }
 
             if ($res === false) {
-                if ($has_permission) {
+                if ($has_permission && max($group_ids) < 3) {
                     return ['code'=>3002,'msg'=>lang('controller/in_try_see'),'trysee'=>$trysee];
                 }
                 else {
@@ -294,7 +294,7 @@ class Base extends All
                     }
                 }
 
-                if(!$has_permission && $has_trysee){
+                if(!$has_permission && $has_trysee && max($group_ids) < 3){
                     $where=[];
                     $where['ulog_mid'] = 1;
                     $where['ulog_type'] = $flag=='play' ? 4 : 5;