chenhao 4 years ago
parent
commit
e71cd7c609
1 changed files with 3 additions and 2 deletions
  1. 3 2
      application/admin/controller/Crontab.php

+ 3 - 2
application/admin/controller/Crontab.php

@@ -113,11 +113,11 @@ class Crontab extends Controller
     {
         set_time_limit(6000);
         $serialzierData = Db::name('serialize')->where('status',1)->find();
-        $excel_arrays =unserialize($serialzierData['text']);
+        $excel_array =unserialize($serialzierData['text']);
         $uni  = $serialzierData['uni'];
         $uid  = $serialzierData['admin_id'];
         $num['error_num'] = 0;
-        $excel_array = array_slice($excel_arrays,0,400);
+//        $excel_array = array_slice($excel_arrays,0,400);
         $success = [];
         $error = [];
 //        var_dump($excel_array);die;
@@ -341,5 +341,6 @@ class Crontab extends Controller
         if ($num['error_num'] > 0) {
             Db::name('import_error')->insertAll($error);
         }
+        Db::name('serialize')->where('uni',$serialzierData['uni'])->update(['status' => 2]);
     }
 }