Skip to content

Commit

Permalink
bug 修改
Browse files Browse the repository at this point in the history
  • Loading branch information
donwa committed Mar 28, 2018
1 parent 7ef9874 commit 193ffd7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ function db($table) {
}
}

!defined('VIEW_PATH') && define('VIEW_PATH', ROOT . 'view/');
if (!function_exists('view')) {
function view($file, $set = null) {
return view::load($file, $set = null);
Expand Down
1 change: 0 additions & 1 deletion lib/onedrive.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ static function get_token($refresh_token){
$post_data = "client_id={$client_id}&redirect_uri={$redirect_uri}&client_secret={$client_secret}&refresh_token={$refresh_token}&grant_type=refresh_token&resource={$resource_id}";
fetch::$headers = "Content-Type: application/x-www-form-urlencoded";
$resp = fetch::post($url, $post_data);
var_dump($resp);
$data = json_decode($resp->content, true);
return $data;
}
Expand Down

0 comments on commit 193ffd7

Please sign in to comment.