Argument 1 passed to Hanson\\Foundation\\Http::__construct() must be an instance of Hanson\\Foundation\\Foundation, null given, called in /var/www/epmms2-award/vendor/hanson/foundation-sdk/src/AbstractAPI.php on line 32
ysw121512 opened this issue · 6 comments
{
"name": "Exception",
"message": "Argument 1 passed to Hanson\Foundation\Http::__construct() must be an instance of Hanson\Foundation\Foundation, null given, called in /var/www/epmms2-award/vendor/hanson/foundation-sdk/src/AbstractAPI.php on line 32",
"code": -1,
"type": "TypeError",
"file": "/var/www/epmms2-award/vendor/hanson/foundation-sdk/src/Http.php",
"line": 55,
"stack-trace": [
"#0 /var/www/epmms2-award/vendor/hanson/foundation-sdk/src/AbstractAPI.php(32): Hanson\Foundation\Http->__construct(NULL)",
"#1 /var/www/epmms2-award/vendor/justmd5/duoduoke-sdk/src/Api.php(52): Hanson\Foundation\AbstractAPI->getHttp()",
"#2 /var/www/epmms2-award/vendor/justmd5/duoduoke-sdk/src/DuoDuoKe.php(25): Justmd5\DuoDuoKe\Api->request('pdd.ddk.goods.r...', Array)",
"#3 /var/www/epmms2-award/api/controllers/PddController.php(151): Justmd5\DuoDuoKe\DuoDuoKe->request('pdd.ddk.goods.r...', Array)",
"#4 [internal function]: api\controllers\PddController->actionIndex()",
"#5 /var/www/epmms2-award/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)",
"#6 /var/www/epmms2-award/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)",
"#7 /var/www/epmms2-award/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('', Array)",
"#8 /var/www/epmms2-award/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('pdd', Array)",
"#9 /var/www/epmms2-award/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))",
"#10 /var/www/epmms2-award/api/web/index.php(17): yii\base\Application->run()",
"#11 {main}"
],
"success": false
}
配置和请求参数发一下,只贴异常,看不出来什么问题
已经查到问题,马上修复,另外,建议使用readme里边的pinduoduo-sdk,更换成本较低。当前项目只做bug fix
请稍后使用最新版本
已经修复,请使用最新版本