Code Monkey home page Code Monkey logo

Comments (16)

kcn3388 avatar kcn3388 commented on May 10, 2024 1

依旧报错
image
data文件夹能够成功创建,应该不是权限的问题

from odindex.

BottleSome avatar BottleSome commented on May 10, 2024 1

改一下128行的$opts试试
原来是:

$opts = array(
		'http' => array(
			'method' => $method,
			'header' => $head,
			'timeout' => 15 * 60, // 超时时间(单位:s)
			'content' => $rqcontent
		)
	);

改成

$opts = array(
		'http' => array(
			'method' => $method,
			'header' => $head,
			'timeout' => 15 * 60, // 超时时间(单位:s)
			'content' => $rqcontent
		),
                'ssl' => array(
            'verify_peer'=>false,
            'verify_peer_name'=>false,
        )
	);

抱歉我现在在外面打字不太方便

from odindex.

BottleSome avatar BottleSome commented on May 10, 2024

手动修改token按理来说效果差不多
不过你的目录内容似乎有点乱
建议新建一个空白目录,只放odproxy.php , index.php , template.html
配置后再试试

from odindex.

BottleSome avatar BottleSome commented on May 10, 2024

记得打开php报错,这个时候需要些报错信息

from odindex.

kcn3388 avatar kcn3388 commented on May 10, 2024

image
已经开启PHP报错

from odindex.

BottleSome avatar BottleSome commented on May 10, 2024

你用的是heymind的小工具获取的token还是beetcb的
heymind的那个已经好久没有维护了
如果最后一步出错了说不定有些问题
在redirectURL验证上

from odindex.

kcn3388 avatar kcn3388 commented on May 10, 2024

你用的是heymind的小工具获取的token还是beetcb的

beetcb
已经在返回的json里面看到了accesstoken了

heymind 的小工具报如下错误:
于步骤4. Authorize for code报错:
AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '2385e6be-54f6-4b1e-ade6-bcc705563fac'.
已经在Azure Portal里配置相应的URI

from odindex.

BottleSome avatar BottleSome commented on May 10, 2024

beetcb那个可以用的话就无所谓了,
现在填入配置后还是空白页吗
还有就是我印象中errorreporting E_前缀是忽略对应报错吧

from odindex.

kcn3388 avatar kcn3388 commented on May 10, 2024

beetcb那个可以用的话就无所谓了,
现在填入配置后还是空白页吗
还有就是我印象中errorreporting E_前缀是忽略对应报错吧

填入refresh_token是报Failed to get accesstoken. Maybe refresh_token expired.这个错误,自己创建token.php是空白

from odindex.

BottleSome avatar BottleSome commented on May 10, 2024

beetcb那个可以用的话就无所谓了,
现在填入配置后还是空白页吗
还有就是我印象中errorreporting E_前缀是忽略对应报错吧

填入refresh_token是报Failed to get accesstoken. Maybe refresh_token expired.这个错误,自己创建token.php是空白

这个错误是程序本身输出的,不是php报错
errorreporting改成E_ALL试一下

from odindex.

BottleSome avatar BottleSome commented on May 10, 2024

实在不行只能在203行后面追加一行
echo $resp;输出请求返回内容看看情况了

from odindex.

kcn3388 avatar kcn3388 commented on May 10, 2024

实在不行只能在203行后面追加一行
echo $resp;输出请求返回内容看看情况了

还是一样,只显示上面的错误

from odindex.

BottleSome avatar BottleSome commented on May 10, 2024

实在不行只能在203行后面追加一行
echo $resp;输出请求返回内容看看情况了

还是一样,只显示上面的错误

你的php环境是怎么安装的,直接手动编译还是一键安装包
我有点怀疑是openssl问题

from odindex.

kcn3388 avatar kcn3388 commented on May 10, 2024

实在不行只能在203行后面追加一行
echo $resp;输出请求返回内容看看情况了

还是一样,只显示上面的错误

你的php环境是怎么安装的,直接手动编译还是一键安装包
我有点怀疑是openssl问题

用的bt panel的一键安装

from odindex.

kcn3388 avatar kcn3388 commented on May 10, 2024

改一下128行的$opts试试
原来是:

$opts = array(
		'http' => array(
			'method' => $method,
			'header' => $head,
			'timeout' => 15 * 60, // 超时时间(单位:s)
			'content' => $rqcontent
		)
	);

改成

$opts = array(
		'http' => array(
			'method' => $method,
			'header' => $head,
			'timeout' => 15 * 60, // 超时时间(单位:s)
			'content' => $rqcontent
		),
                'ssl' => array(
            'verify_peer'=>false,
            'verify_peer_name'=>false,
        )
	);

抱歉我现在在外面打字不太方便

ok了,麻烦你啦

from odindex.

BottleSome avatar BottleSome commented on May 10, 2024

改一下128行的$opts试试
原来是:

$opts = array(
		'http' => array(
			'method' => $method,
			'header' => $head,
			'timeout' => 15 * 60, // 超时时间(单位:s)
			'content' => $rqcontent
		)
	);

改成

$opts = array(
		'http' => array(
			'method' => $method,
			'header' => $head,
			'timeout' => 15 * 60, // 超时时间(单位:s)
			'content' => $rqcontent
		),
                'ssl' => array(
            'verify_peer'=>false,
            'verify_peer_name'=>false,
        )
	);

抱歉我现在在外面打字不太方便

ok了,麻烦你啦

没事,这个地方也是我疏忽了,稍后我会修复一下,解决了就好

from odindex.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.