|
@@ -36,10 +36,13 @@ 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]);
|
|
|
|
|
|
- $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");
|
|
|
+ //echo sprintf('<script>console.log(DirectlyIdentify);DirectlyIdentify.callBack(%s);</script>', json_encode($data));
|
|
|
}
|
|
|
|
|
|
public function talent_import(){
|
|
@@ -62,7 +65,7 @@ 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));
|