Skip to content

Commit

Permalink
修复检测升级的url地址错误
Browse files Browse the repository at this point in the history
  • Loading branch information
weichaoduo committed Mar 31, 2020
1 parent 35f025d commit 62cc183
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/ctrl/BaseUserCtrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function checkUpdate()
if ($this->isAdmin) {
$checkVersionFile = STORAGE_PATH . 'tmp/' . date('Y-m-d-H') . '.-check-version.log';
if (!file_exists($checkVersionFile)) {
$sourceHost = 'http://www.masterlab.com/';
$sourceHost = 'http://www.masterlab.vip/';
$url = $sourceHost . 'upgrade.php?action=get_patch_info&current_version=' . MASTERLAB_VERSION;
$curl = new \Curl\Curl();
$curl->setTimeout(5);
Expand Down
2 changes: 1 addition & 1 deletion bin/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ single_mode = true
auth_cmds = ["Auth","Authorize"]

[mysql]
database = "masterlab122"
database = "masterlab211"
host = "localhost"
port = "3306"
user = "root"
Expand Down
6 changes: 3 additions & 3 deletions bin/cron.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
"schedule": [
{
"name": "ProjectStat",
"exe_bin": "C:/xampp7.2/php/php.exe",
"exe_bin": "C:/xampp7.4/php/php.exe",
"exp": "0 */30 * * * ?",
"file": "C:/www/masterlab/app/server/timer/project.php",
"arg": "-f"
},
{
"name": "ProjectReport",
"exe_bin": "C:/xampp7.2/php/php.exe",
"exe_bin": "C:/xampp7.4/php/php.exe",
"exp": "0 58 23 * * ?",
"file": "C:/www/masterlab/app/server/timer/projectDayReport.php",
"arg": "-f"
},
{
"name": "SprintReport",
"exe_bin": "C:/xampp7.2/php/php.exe",
"exe_bin": "C:/xampp7.4/php/php.exe",
"exp": "0 59 23 * * ?",
"file": "C:/www/masterlab/app/server/timer/sprintDayReport.php",
"arg": "-f"
Expand Down

0 comments on commit 62cc183

Please sign in to comment.