parent
4a9d8c72c8
commit
1d4a5817fc
|
@ -121,7 +121,10 @@ class Onedrive {
|
||||||
if (in_array(strtolower(splitlast($files['name'],'.')[1]), $exts['txt'])) {
|
if (in_array(strtolower(splitlast($files['name'],'.')[1]), $exts['txt'])) {
|
||||||
if ($files['size']<1024*1024) {
|
if ($files['size']<1024*1024) {
|
||||||
if (!(isset($files['content'])&&$files['content']['stat']==200)) {
|
if (!(isset($files['content'])&&$files['content']['stat']==200)) {
|
||||||
$content1 = curl('GET', $files[$this->DownurlStrName]);
|
$content1 = curl('GET', $files[$this->DownurlStrName], '', [], 1);
|
||||||
|
if ($content1['stat'] == 302) {
|
||||||
|
$content1 = curl('GET', $content1["returnhead"]["location"]);
|
||||||
|
}
|
||||||
$tmp = null;
|
$tmp = null;
|
||||||
$tmp = json_decode(json_encode($content1), true);
|
$tmp = json_decode(json_encode($content1), true);
|
||||||
if ($tmp['body']===null) {
|
if ($tmp['body']===null) {
|
||||||
|
|
Loading…
Reference in New Issue