Comments (6)
看看你的继承 foundation
的类是怎么写的
from foundation-sdk.
这里有些案例列表,可以参考看看 https://packagist.org/packages/hanson/foundation-sdk/dependents
from foundation-sdk.
class Meituan extends Foundation
{
protected $providers = [
MeituanSdk\AccessToken\ServiceProvider::class,
MeituanSdk\Coupon\ServiceProvider::class,
MeituanSdk\Store\ServiceProvider::class
];
public function setAppAuthToken($appAuthToken)
{
$this->access_token->setAppAuthToken($appAuthToken);
return $this;
}
跟着你的美团那个写的,但是你那个是用的2.0版本没有问题,我待会看看你给的参考,找找我错在哪
from foundation-sdk.
https://github.com/HanSon/youzan-sdk/blob/master/src/Youzan.php 有赞包是基于 3.0 写的, 你可以看看也没有多余的构造函数之类的
from foundation-sdk.
好的,谢谢
from foundation-sdk.
大概猜到你的问题 ,现在需要用 $pimple->getConfig()['client_id']
取出 config 配置即可
from foundation-sdk.
Related Issues (17)
- http 文件上传时无法上传多维数组 HOT 3
- 是否应该支持一下TDD? HOT 1
- Http.php升级后报错了 HOT 11
- getHandler 的一点疑问 HOT 1
- 希望加入对 guzzlehttp/guzzle 7.x 的支持 HOT 1
- 依赖的foundation-sdk该更新了 HOT 1
- config.php有问题,似乎是之前的一次commit导致的
- php5 版本支持 HOT 1
- 移除 app 依赖 HOT 1
- 请问Client 的base_uri如何设置
- 5.0不支持PHP8
- 报一个null错误 HOT 1
- 可以把cache 更换成Symfony\Component\Cache包吗? HOT 2
- request 无法获取服务端返回的数据 HOT 1
- 这么好的东西能不能出个使用文档呀?手册也行呀,拜托拜托 HOT 3
- 请求的 headers 可以添加自定义数据么? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foundation-sdk.