diff --git a/bin/getbugs.php b/bin/getbugs.php index bd368514af..8ca1173fbf 100755 --- a/bin/getbugs.php +++ b/bin/getbugs.php @@ -1,13 +1,17 @@ #!/usr/bin/env php default->domain . '/'; // 请根据实际的情况进行修改。 +$requestType = $config->requestType; // 可选值: GET|PATH_INFO。 +$account = "admin"; //登录禅道的用户名 +$password = "123456"; //登录禅道的密码 + +if($account == '' and $password == '') die("Must set account and password in " . __FILE__ . ".\n"); /* 设置API地址。*/ if($requestType == 'GET') diff --git a/bin/todo.php b/bin/todo.php index b4f22e4bff..6f081ce683 100755 --- a/bin/todo.php +++ b/bin/todo.php @@ -1,15 +1,17 @@ #!/usr/bin/env php default->domain ."/"; +$requestType = $config->requestType; // 禅道系统访问方式,请根据实际的配置进行修改。 +$account = "admin"; // 需要设置用户名和密码。 +$password = "123456"; -if($account == '' and $password == '') die("Must set account and password.\n"); +if($account == '' and $password == '') die("Must set account and password in " . __FILE__ . ".\n"); /* 设置API地址。*/ if($requestType == 'GET')