stanley-king 3 سال پیش
والد
کامیت
d392980bb5
1فایلهای تغییر یافته به همراه8 افزوده شده و 4 حذف شده
  1. 8 4
      test/TestOrderErr.php

+ 8 - 4
test/TestOrderErr.php

@@ -72,10 +72,14 @@ class TestOrderErr extends TestCase
         $mod_log = Model();
         $inserter = function ($logs) use ($mod_log)
         {
-            $mod_log->table('acclog')->insertAll($logs);
-//            foreach ($logs as $log) {
-//                $mod_log->table('acclog')->insert($log);
-//            }
+//            $mod_log->table('acclog')->insertAll($logs);
+            foreach ($logs as $log)
+            {
+                $ret = $mod_log->table('acclog')->insert($log);
+                if(!$ret) {
+                    Log::record("import error",Log::ERR);
+                }
+            }
         };
 
         $file = fopen($filename,'r');