From 63f545f870bcdfa2f1bf14c56bfe78066cfde8e4 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 13 Apr 2020 12:07:31 +0800 Subject: [PATCH] * adjust var name. --- module/compile/model.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/compile/model.php b/module/compile/model.php index b6744ab8ec..947acb8b5a 100644 --- a/module/compile/model.php +++ b/module/compile/model.php @@ -128,13 +128,13 @@ class compileModel extends model if(!$job) return false; - $tagData = new stdclass(); - $tagData->PARAM_TAG = $compile->tag; - $tagData->ZENTAO_DATA = "compile={$compile->id}"; + $data = new stdclass(); + $data->PARAM_TAG = $compile->tag; + $data->ZENTAO_DATA = "compile={$compile->id}"; $buildUrl = $this->getBuildUrl($job); $build = new stdclass(); - $build->queue = $this->loadModel('ci')->sendRequest($buildUrl, $tagData); + $build->queue = $this->loadModel('ci')->sendRequest($buildUrl, $data); $build->status = $build->queue ? 'created' : 'create_fail'; $build->updateDate = helper::now(); $this->dao->update(TABLE_COMPILE)->data($build)->where('id')->eq($compile->id)->exec();