Przeglądaj źródła

考试资格判断

lizhen_gitee 8 miesięcy temu
rodzic
commit
3b622b0191
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      addons/exam/controller/Paper.php

+ 1 - 1
addons/exam/controller/Paper.php

@@ -116,7 +116,7 @@ class Paper extends Base
         }
 
         //考试资格
-        if(!in_array($user_id,$paper['user_ids'])){
+        if(!in_array($user_id,explode(',',$paper['user_ids']))){
             $this->error('您不能参加该考试');
         }