瀏覽代碼

fixed uniqid in ant

Piotr Labudda 9 年之前
父節點
當前提交
21d1c4f974
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      SE/se-lib/Route/UrlAction/Ant.php

+ 1 - 1
SE/se-lib/Route/UrlAction/Ant.php

@@ -124,7 +124,7 @@ class Route_UrlAction_Ant extends Route_Ant {// @doc @see Route_Ant
       DBG::log([ 'msg'=>'$outputFunctionUrl', '$outputFunctionUrl'=>$outputFunctionUrl]);
       $testUrl = Request::getPathUri() . "wfs-data.php/default_db/?SERVICE=WFS&VERSION=1.0.0&TYPENAME={$typeName}&SRSNAME=EPSG:3003&featureID={$objectName}.{$primaryKey}";// &REQUEST=GetFeature
       $cryptedPass = base64_encode(User::getLogin() . ":" . Crypt::decrypt($_SESSION['ADM_PASS_HASH']));
-      $uniqID = session_id();// TODO: uniq id for every request
+      $uniqID = date("Y-m-d-H:i:s") . substr(md5(time()), 0, 6);// TODO: uniq id for every request
       // $cmd = "{$this->pathUrlActions}{$path}/do_build.sh";
       $cmd = "cd {$this->pathUrlActions}{$path} && ant -S";
       $cmd .= " -DoutputFunctionUrl='{$outputFunctionUrl}'";