Giter Site home page Giter Site logo

Comments (3)

caiyonglong avatar caiyonglong commented on June 12, 2024

修改音乐湖后台API为ip地址。ip地址 不是一个正确的url地址。所以应用启动时,初始化网络框架时会报错。

一般修改地址有两个方式
1、修改源码中的url地址
2、app设置页面中,输入api地址修改

这个功能(第二点)主要是为了调试方便,所以一般不会输错。

另外这个不能try catch。可以在修改API时,做一个强制校验,如果修改值不是url,不允许修改。

from musiclake.

LiuLiujie avatar LiuLiujie commented on June 12, 2024

好的,我尝试一下看看能否加一个正则校验,或者是在修改该字段的时候加一个对API的测试http请求,不成功则不允许修改。主要是一旦错误输入之后必须重装APP才能恢复,比较影响用户体验。感谢您的认真回复,您可随时关闭这个issue~

from musiclake.

caiyonglong avatar caiyonglong commented on June 12, 2024

好的,我尝试一下看看能否加一个正则校验,或者是在修改该字段的时候加一个对API的测试http请求,不成功则不允许修改。主要是一旦错误输入之后必须重装APP才能恢复,比较影响用户体验。感谢您的认真回复,您可随时关闭这个issue~

输入错误,可以清空应用数据,没必要重装apk

from musiclake.

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.