Skip to content

Commit

Permalink
Merge pull request #21 from bolechen/patch-1
Browse files Browse the repository at this point in the history
Update composer.json
  • Loading branch information
Hanson authored Oct 21, 2020
2 parents 265fac8 + 7c2adf2 commit 6afc0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"require": {
"ext-json": "*",
"ext-openssl": "*",
"hanson/foundation-sdk": "^3.0"
"hanson/foundation-sdk": "^3.0 | ^4.0"
},
"autoload": {
"psr-4": {
Expand Down

5 comments on commit 6afc0a6

@bolechen
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个也要 @Hanson 辛苦了

@Hanson
Copy link
Owner Author

@Hanson Hanson commented on 6afc0a6 Oct 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bolechen 好了

@bolechen
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我发现把产品环境升级到 4.0 后还是有问题 -__-

只有当 require "hanson/foundation-sdk:3.0.*" 的时候是好的。 @Hanson 麻烦有空再看看,我记得最新的 commit 不是去掉依赖 app 了吗?

>>> $youzan->tradeGet(['tid'=>'E20201102125000024800065'])
PHP Notice:  Trying to get property 'http' of non-object in /home/forge/foundation-sdk/src/AbstractAccessToken.php on line 221
PHP Error:  Call to a member function json() on null in /home/forge/vendor/hanson/youzan-sdk/src/AccessToken.php on line 76

@Hanson
Copy link
Owner Author

@Hanson Hanson commented on 6afc0a6 Nov 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bolechen 看一下 foundation 版本是多少

@bolechen
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bolechen 看一下 foundation 版本是多少

出错的时候是 4.0.3,后来降级了就正常了

** - Downgrading hanson/foundation-sdk (4.0.3 => 3.0.5): Extracting archive**

Please sign in to comment.