diff --git a/common.php b/common.php index be9ac95..42862eb 100644 --- a/common.php +++ b/common.php @@ -432,7 +432,7 @@ function files_json($files) array_push($tmp['list'], $tmp1); } } else return output('', 404); - return output(json_encode($tmp)); + return output(json_encode($tmp), 200, ['Content-Type' => 'application/json']); } function get_access_token($refresh_token) @@ -1521,12 +1521,12 @@ function get_refresh_token() } } - if ($constStr['language']!='zh-cn') { - $linklang='en-us'; - } else $linklang='zh-cn'; - $ru = "https://developer.microsoft.com/".$linklang."/graph/quick-start?appID=_appId_&appName=_appName_&redirectUrl=".$_SERVER['redirect_uri']."&platform=option-php"; - $deepLink = "/quickstart/graphIO?publicClientSupport=false&appName=OneManager&redirectUrl=".$_SERVER['redirect_uri']."&allowImplicitFlow=false&ru=".urlencode($ru); - $app_url = "https://apps.dev.microsoft.com/?deepLink=".urlencode($deepLink); + //if ($constStr['language']!='zh-cn') { + // $linklang='en-us'; + //} else $linklang='zh-cn'; + //$ru = "https://developer.microsoft.com/".$linklang."/graph/quick-start?appID=_appId_&appName=_appName_&redirectUrl=".$_SERVER['redirect_uri']."&platform=option-php"; + //$deepLink = "/quickstart/graphIO?publicClientSupport=false&appName=OneManager&redirectUrl=".$_SERVER['redirect_uri']."&allowImplicitFlow=false&ru=".urlencode($ru); + //$app_url = "https://apps.dev.microsoft.com/?deepLink=".urlencode($deepLink); $html = '