2018-06-13 00:17:33 2223次浏览 0条回答 0 悬赏 10 金钱
{
    "name": "Exception",
    "message": "Argument 1 passed to OAuth2\\Server::handleTokenRequest() must be an instance of OAuth2\\RequestInterface, instance of yii\\web\\Request given, called in /Users/moment/work/code/work-jy/shop-admin/vendor/filsh/yii2-oauth2-server/Server.php on line 42",
    "code": 0,
    "type": "TypeError",
    "file": "/Users/moment/work/code/work-jy/shop-admin/vendor/bshaffer/oauth2-server-php/src/OAuth2/Server.php",
    "line": 316,
    "stack-trace": [
        "#0 /Users/moment/work/code/work-jy/shop-admin/vendor/filsh/yii2-oauth2-server/Server.php(42): OAuth2\\Server->handleTokenRequest(Object(yii\\web\\Request), NULL)",
        "#1 /Users/moment/work/code/work-jy/shop-admin/vendor/filsh/yii2-oauth2-server/controllers/RestController.php(26): filsh\\yii2\\oauth2server\\Server->handleTokenRequest()",
        "#2 [internal function]: filsh\\yii2\\oauth2server\\controllers\\RestController->actionToken()",
        "#3 /Users/moment/work/code/work-jy/shop-admin/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)",
        "#4 /Users/moment/work/code/work-jy/shop-admin/vendor/yiisoft/yii2/base/Controller.php(157): yii\\base\\InlineAction->runWithParams(Array)",
        "#5 /Users/moment/work/code/work-jy/shop-admin/vendor/yiisoft/yii2/base/Module.php(528): yii\\base\\Controller->runAction('token', Array)",
        "#6 /Users/moment/work/code/work-jy/shop-admin/vendor/yiisoft/yii2/web/Application.php(103): yii\\base\\Module->runAction('oauth2/rest/tok...', Array)",
        "#7 /Users/moment/work/code/work-jy/shop-admin/vendor/yiisoft/yii2/base/Application.php(386): yii\\web\\Application->handleRequest(Object(yii\\web\\Request))",
        "#8 /Users/moment/work/code/work-jy/shop-admin/api/web/index.php(17): yii\\base\\Application->run()",
        "#9 {main}"
    ]
}
    没有找到数据。
您需要登录后才可以回答。登录 | 立即注册
sitefanie_
试用期

sitefanie_

注册时间:2018-06-10
最后登录:2018-06-28
在线时长:3小时12分
  • 粉丝0
  • 金钱10
  • 威望0
  • 积分40

热门问题