Explorar el Código

fixbug:调整行数位数

yb hace 1 semana
padre
commit
e4ec8e10dd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/admin/service/consultant/CustomService.php

+ 1 - 1
app/admin/service/consultant/CustomService.php

@@ -1214,7 +1214,7 @@ class CustomService
                 try {
                     foreach ($data as $key => $val) {
                         if ($val[3] == 1) {$level = 1;} else if ($val[4] == 1) {$level = 2;} else if ($val[5] == 1) {$level = 3;} else if ($val[6] == 1) {$level = 4;}
-                        $line = '第'.($key + 2).'行:';
+                        $line = '第'.($key + 1).'行:';
                         if (empty($val[7]) && empty($val[8])) {
                             throw new \Exception($line.'报备人和顾问必须存在其中之一');
                         }