Git Product home page Git Product logo

Comments (4)

zhaozepeng avatar zhaozepeng commented on August 17, 2024

你有QQ么??我加你QQ,那样交流方便一点,这个问题我不是太明白= =

from android_framework.

zhaozepeng avatar zhaozepeng commented on August 17, 2024

153436644,我的微信。话说你们也用微信??

from android_framework.

zhaozepeng avatar zhaozepeng commented on August 17, 2024

这个问题我貌似遇见过,我在BaseNetApi中使用的是静态内部类,但是静态内部类是有一个延迟加载操作的,所以这里的JsonObjectRequestImpl.class是可能没有值的,这个问题,稍后我去仔细看看

from android_framework.

lowfiend avatar lowfiend commented on August 17, 2024

幫你解出來了

你的void少用new JSONObject(params)

改成這樣

public JsonObjectRequestImpl(int method, String url, Response.Listener listener,
Response.ErrorListener errorListener, Map<String, String> params) {
super(method, url,new JSONObject(params), listener, errorListener);
this.params = params;
}

php code:

$post = json_decode(file_get_contents("php://input"), true);
$xxx= $post['xxxx'];
$xxxxx= $post['xxxxx'];

就可以了

from android_framework.

Related Issues (5)

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.