Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法找到isSuccess() #1

Open
HimiHL opened this issue Jul 9, 2018 · 0 comments
Open

无法找到isSuccess() #1

HimiHL opened this issue Jul 9, 2018 · 0 comments

Comments

@HimiHL
Copy link

HimiHL commented Jul 9, 2018

之前提在另外一个项目的,转过来了

我是通过Composer安装的 aliyun-php-sdk-sts: 1.0.x@dev
里面出现一个问题,生成STS的时候,报错 isSuccess不是一个有效的方法,然后看了下源码

在aliyun-php-sdk-core/DefaultAcsClient.php第44行,返回的是数组/Object类型,但是在aliyun-php-sdk-sts/StsToken.php第66行调用了Response才用的isSuccess()和getBody(),是什么问题呢?

我手动将返回变量改成了$httpResponse就解决了?
这里是不是应该把下面的判断去掉了?在core里做过基础的判断了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant