Giter VIP home page Giter VIP logo

Comments (6)

liujingxing avatar liujingxing commented on June 12, 2024

好的,今晚解决这个问题

from rxhttp.

liujingxing avatar liujingxing commented on June 12, 2024

你好,我用kotlin试了下确实不行,kapt 'com.rxjava.rxhttp:rxhttp-compiler:1.0.5,使用kapt代替annotationProcessor就好了,感谢你的反馈。

from rxhttp.

ted23335921 avatar ted23335921 commented on June 12, 2024

你好,我用kotlin试了下确实不行kapt 'com.rxjava.rxhttp:rxhttp-compiler:1.0.5,,使用kapt代替annotationProcessor就好了,感谢你的反馈。

大佬,post请求的时候,参数要放到body体里面,我创建map,然后.add(map)的形势传参,这样是无法调通的。是我用的不对,还是怎么回事?怎样把参数放到body体中?

from rxhttp.

liujingxing avatar liujingxing commented on June 12, 2024

你使用的postForm还是postJson?前者是发送表单形式的post请求,后者是发送Json形式的post请求,都会将参数放到body里面。无法调通,有报什么错误吗?

from rxhttp.

ted23335921 avatar ted23335921 commented on June 12, 2024

你使用的postForm还是postJson?前者是发送表单形式的post请求,后者是发送Json形式的post请求,都会将参数放到body里面。无法调通,有报什么错误吗?

请求这个解决了,但是,如果在activity和fragment中使用是没有问题的,不过在MVP中,网络请求并不在activity中,而是在P中,这样,【.as(RxLife.asOnMain(this)) 】这里就会报错。怎么处理能把这个请求还是绑定到activity的生命周期中?

from rxhttp.

liujingxing avatar liujingxing commented on June 12, 2024

P层及任意类使用RxLife.as(this)请查看https://juejin.im/post/5cf3e1235188251c064815f1

from rxhttp.

Related Issues (20)

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.