Skip to content

Commit

Permalink
Update upgrade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
idcsmart committed Feb 3, 2023
1 parent 51a2478 commit 738a70d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/upgrade/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public function checkLogin()

protected function verifyJwt($jwt)
{
$idcsmart = include IDCSMART_ROOT."/config/idcsmart.php";
$key = $idcsmart['jwt_key_admin'] . AUTHCODE;
//$idcsmart = include IDCSMART_ROOT."/config/idcsmart.php";
$key = 'qp8FhjzGHRUaPsBXSdu24CmD90EJ3l' . AUTHCODE;

try{
$jwtAuth = json_decode(json_encode(\Firebase\JWT\JWT::decode($jwt, new \Firebase\JWT\Key($key,'HS256'))),true);
Expand Down Expand Up @@ -298,7 +298,7 @@ public function upgradeFileMove()
return json_encode(['status'=>400, 'msg'=>$progress_log['msg']]);
}
}
return json_encode(['status'=>400, 'msg'=>'升级步骤错误']);
return json_encode(['status'=>400, 'msg'=>'升级文件错误']);

}
return json_encode(['status'=>400, 'msg'=>'升级步骤错误']);
Expand Down

0 comments on commit 738a70d

Please sign in to comment.