sugangqiang 2 năm trước cách đây
mục cha
commit
888dfca04d

+ 1 - 0
app/enterprise/controller/Base.php

@@ -320,6 +320,7 @@ class Base extends EnterpriseController {
                 $res = ["code" => 200, "msg" => $success_msg, "obj" => ["id" => $id, "checkState" => $checkState]];
                 $callback = $checkState == TalentState::FST_SAVE ? "infoCallback" : "submitCallback";
                 echo sprintf("<script>parent.TalentInfoInfoDlg.{$callback}(%s);</script>", json_encode($res));
+                exit();
             } else {
                 throw new ValidateException($error_msg);
             }

+ 1 - 0
app/enterprise/controller/Talent.php

@@ -260,6 +260,7 @@ class Talent extends EnterpriseController {
             $res = ["code" => 200, "msg" => $success_msg, "obj" => ["id" => $info["id"], "checkState" => $checkState]];
             $callback = $checkState == TalentState::SCND_SAVE ? "infoCallback" : "submitCallback";
             echo sprintf("<script>parent.TalentInfoInfoDlg.{$callback}(%s);</script>", json_encode($res));
+            exit();
         } catch (ValidateException $e) {
             $res = ["msg" => $e->getMessage()];
             $callback = $checkState == TalentState::SCND_SAVE ? "infoCallback" : "submitCallback";