sandm 2 vuotta sitten
vanhempi
commit
cac882fa33
1 muutettua tiedostoa jossa 6 lisäystä ja 4 poistoa
  1. 6 4
      app/admin/controller/DirectlyIdentify.php

+ 6 - 4
app/admin/controller/DirectlyIdentify.php

@@ -36,7 +36,7 @@ class DirectlyIdentify extends AdminController{
 
         $id = Db::table("new_talent_zhiren")->insertGetId($zhiren_data);
 
-        //queue("app\job\Import", ["id" => $id,"type" => 1]);
+        queue("app\job\Import", ["id" => $id,"type" => 1]);
 
         $response_obj = new \StdClass();
         $response_obj->code = 200;
@@ -65,9 +65,11 @@ class DirectlyIdentify extends AdminController{
 
         $id = Db::table("new_talent_zhiren")->insertGetId($zhiren_data);
 
-        //queue("app\job\Import", ["id" => $id,"type" => 2]);
+        queue("app\job\Import", ["id" => $id,"type" => 2]);
 
-        $data = ["code" => 200, "msg" => "导入成功"];
-        echo sprintf('<script>parent.DirectlyIdentify.callBack(%s);</script>', json_encode($data));
+        $response_obj = new \StdClass();
+        $response_obj->code = 200;
+        $response_obj->msg = '导入成功';
+        return \StrUtil::back($response_obj, "DirectlyIdentify.callBack");
     }
 }