Giter Club home page Giter Club logo

Comments (6)

Toperlock avatar Toperlock commented on August 22, 2024

这是读取本地json模板文件的形式。
那为啥不按要求把temp_json_data放在config_template文件夹下
providers.json里的 config_template 参数在网页使用脚本用的

from sing-box-subscribe.

leiyaocui avatar leiyaocui commented on August 22, 2024

我指的是读取本地json模板的parse_json函数与line 510 - line 513的处理逻辑之间存在矛盾,进而导致错误。

from sing-box-subscribe.

Toperlock avatar Toperlock commented on August 22, 2024

本地使用请你不要传入temp_json_data参数即可

tool.readFile(value)是读取本地文件,你有考虑在网页执行的时候怎么读取一条链接? 你输入一个网页链接怎么可能会冲突????

你非要在providers.json文件里 填上"config_template"参数,请你输入一条网页链接。而不是一个"./tmp.json" 本地路径!!!!!

本地使用的可操作性比网页灵活,没必要"config_template",而且你非要填,我reademe写的你认真看了吗?

image

image

from sing-box-subscribe.

leiyaocui avatar leiyaocui commented on August 22, 2024

你好像误解了我这里出现的问题,或许是我用line xxx的表述造成了你我之间信息传递的误差。

首先,我并没有在providers.json中填写config_template。

其次,我这里的出发点是,因为我希望在为不同的机场配置完成providers_xxx.json后,可以通过argparse来指定我要读取的特定的json而不是默认的那个,而我发现main.py中确实有这个argument,但是使用过程中发现它有点问题。

from sing-box-subscribe.

Toperlock avatar Toperlock commented on August 22, 2024

你发pr吧

from sing-box-subscribe.

Toperlock avatar Toperlock commented on August 22, 2024

你要是认真看reademe,不至于说出找不到指定配置json的方法

image

image

from sing-box-subscribe.

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.