Giter Site home page Giter Site logo

微博的AuthResp类中expiresIn这个字段别用int类型接收,安卓手机这个使用int,接收的数值为负数,应该使用长整形或者字符串类型,都比这个好。我们遇到过这个bug。希望能尽快修改谢谢。 about weibo_kit HOT 2 CLOSED

15949893621 avatar 15949893621 commented on September 27, 2024
微博的AuthResp类中expiresIn这个字段别用int类型接收,安卓手机这个使用int,接收的数值为负数,应该使用长整形或者字符串类型,都比这个好。我们遇到过这个bug。希望能尽快修改谢谢。

from weibo_kit.

Comments (2)

droplet-js avatar droplet-js commented on September 27, 2024

?
Flutter上的 int32(int)和 int64(long)都是 int 表示,插件里 java 部分 expiresIn 为 long 型,oc 部分为 long long 型,不明白你的 BUG 是啥?

from weibo_kit.

15949893621 avatar 15949893621 commented on September 27, 2024

您好,很高兴收到您的回复。
我给您截了一张图片。我使用的是华为手机,鸿蒙2.0.0系统。
监听到微博回调给的数据,expiresIn这个成负数了。
截屏2022-07-22 21 22 08

我们以前做安卓原生开发的时候也越到过这种问题,就是因为当时我们使用int类型去解析的这个字段,后来我们该成Long类型就可以了。

变成负数和他们给的原始数值是不一样的。

谢谢!

from weibo_kit.

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.