GithubHelp home page GithubHelp logo

报错了 about thinkphp5-restfulapi HOT 9 CLOSED

leslin avatar leslin commented on May 12, 2024
报错了

from thinkphp5-restfulapi.

Comments (9)

lixuemn avatar lixuemn commented on May 12, 2024 1

实在太难了。

from thinkphp5-restfulapi.

Leslin avatar Leslin commented on May 12, 2024

看看你的环境配置,与nginx的路由配置,这个不是代码问题,你环境的问题

from thinkphp5-restfulapi.

lixuemn avatar lixuemn commented on May 12, 2024

本地配置到http://tp5test/index.php/v1/user,然后提示{"code":402,"message":"Invalid1 authentication credentials."}。我该如何处理。

from thinkphp5-restfulapi.

Leslin avatar Leslin commented on May 12, 2024

这个异常是你没有权限访问,代码是已经通了,你看下github上我写的说明,你User不集成Api也可以不用鉴权

from thinkphp5-restfulapi.

lixuemn avatar lixuemn commented on May 12, 2024

就是想学学这个鉴权。我们后期要做个“采用前后分离,分离后,前端不只是JS+HTML,也可以用PHP,只是数据通过API的形式来获取,必须拥有USERID+KEY来验证才能获取数据”。现在不知道怎么在往下做。

from thinkphp5-restfulapi.

lixuemn avatar lixuemn commented on May 12, 2024

看到你写的都懵逼了,高深

from thinkphp5-restfulapi.

lixuemn avatar lixuemn commented on May 12, 2024

数据库需要配置吗。里面的oauth.sql怎么加不到我的数据库

from thinkphp5-restfulapi.

Leslin avatar Leslin commented on May 12, 2024

直接复制sql语句运行就可以,这个表就两个字段,自己创建就行。

from thinkphp5-restfulapi.

Leslin avatar Leslin commented on May 12, 2024

可以加群,群里有很多人都采用了这个框架来做开发。

from thinkphp5-restfulapi.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.