From 8e146a8362d87a98517ae44254e17bcaf2e23a20 Mon Sep 17 00:00:00 2001 From: aaron <462826@qq.com> Date: Thu, 12 Dec 2019 20:04:00 +0800 Subject: [PATCH] git support --- module/ci/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/ci/control.php b/module/ci/control.php index da9c87e279..9afdd755e1 100644 --- a/module/ci/control.php +++ b/module/ci/control.php @@ -280,7 +280,7 @@ class ci extends control if(dao::isError()) die(js::error(dao::getError())); $link = $this->ci->createLink('showSyncComment', "repoID=$repoID"); - die(js::locate($link, 'parent')); + $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $link)); } $this->app->loadLang('action'); @@ -316,7 +316,7 @@ class ci extends control { die(js::locate($this->ci->createLink('showSyncComment', "repoID=$repoID"), 'parent')); } - die(js::locate($this->ci->createLink('browseRepo'), 'parent')); + $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inlink('browseRepo'))); } $this->app->loadLang('action');