Browse Source

202508123 训练,练习交卷逻辑调整

贾小兵 2 weeks ago
parent
commit
831b86fd19

+ 2 - 2
application/admin/controller/student/Exercise.php

@@ -385,7 +385,7 @@ class Exercise extends Backend
                                 }
 
 
-                                if($v['bw_id']!=$buwei_id){
+                                if($v['bw_id']!=$buwei_id && $v['xx_id']!='000100010000' && $v['pc_id']!='0001GZBW000A'){
                                     $buwei_score = 1+$buwei_score;
                                     $kscore = 1+$kscore;
                                     $content[] = [
@@ -409,7 +409,7 @@ class Exercise extends Backend
                                 }
                             
                                 //排除方法  错写
-                                if($v['pc_id']!=$paichu_id){
+                                if($v['pc_id']!=$paichu_id && $v['xx_id']!='000100010000' && $v['pc_id']!='0001PCFF0031'){
                                     $buwei_score = 1+$buwei_score;
                                     $kscore = 1+$kscore;
                                     $content[] = [

+ 2 - 2
application/admin/controller/student/Practice.php

@@ -346,7 +346,7 @@ class Practice extends Backend
                                 }
 
 
-                                if($v['bw_id']!=$buwei_id){
+                                if($v['bw_id']!=$buwei_id && $v['xx_id']!='000100010000' && $v['pc_id']!='0001GZBW000A'){
                                     $buwei_score = 1+$buwei_score;
                                     $kscore = 1+$kscore;
                                     $content[] = [
@@ -370,7 +370,7 @@ class Practice extends Backend
                                 }
                             
                                 //排除方法  错写
-                                if($v['pc_id']!=$paichu_id){
+                                if($v['pc_id']!=$paichu_id && $v['xx_id']!='000100010000' && $v['pc_id']!='0001PCFF0031'){
                                     $buwei_score = 1+$buwei_score;
                                     $kscore = 1+$kscore;
                                     $content[] = [