Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

青龙消息版如何添加变量? #1

Closed
siren202101 opened this issue Aug 22, 2021 · 14 comments
Closed

青龙消息版如何添加变量? #1

siren202101 opened this issue Aug 22, 2021 · 14 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers question Further information is requested

Comments

@siren202101
Copy link

siren202101 commented Aug 22, 2021

变量修改后运行提示没有添加账号?
if "FN_ID" in os.environ:
username = os.environ.get('账号')
if "FN_PW" in os.environ:
password = os.environ.get('密码')

这样填写无法生效?

############

args

parser = argparse.ArgumentParser()
parser.add_argument('-u', '--username', type=str)
parser.add_argument('-p', '--password', type=str)
args = parser.parse_args()
username = '账号' ###我修改的
password = '密码' ###我修改的
最后我修改这两处后运行,有显示我的账号下的域名还剩多少天,不知道这样修改正不正确?

@ghost
Copy link

ghost commented Aug 22, 2021

环境变量

image

注:填在配置文件 config.sh 也是可以的

成功日志

image

@ghost ghost closed this as completed Aug 22, 2021
@ghost ghost pinned this issue Aug 22, 2021
@siren202101
Copy link
Author

感谢大佬

@chwl66
Copy link

chwl66 commented Aug 25, 2021

为什么我添加了多账号就运行不成功呢?单账号都可以成功的,就是多账号提示get login status failed 也是使用了空格进行分离

@ghost
Copy link

ghost commented Aug 25, 2021

为什么我添加了多账号就运行不成功呢?单账号都可以成功的,就是多账号提示get login status failed 也是使用了空格进行分离

因为青龙要用空行才有效

@chwl66
Copy link

chwl66 commented Aug 25, 2021

为什么我添加了多账号就运行不成功呢?单账号都可以成功的,就是多账号提示get login status failed 也是使用了空格进行分离

因为青龙要用空行才有效

感谢大佬,我一直以为是空格!

@ghost ghost added the question Further information is requested label Sep 22, 2021
@18723574278
Copy link

怎么使用多账号续费啊?

@ghost
Copy link

ghost commented Jul 18, 2022

@18723574278 多账号空格隔开

@18723574278
Copy link

@18723574278 多账号空格隔开

我是了不可以

@ghost
Copy link

ghost commented Jul 18, 2022

@18723574278 青龙用空行隔开

@18723574278
Copy link

@18723574278 多账号空格隔开

要空行对吧?

@18723574278
Copy link

@18723574278 青龙用空行隔开

ok谢谢了啊

@ghost ghost added documentation Improvements or additions to documentation good first issue Good for newcomers labels Jul 18, 2022
@18723574278
Copy link

@18723574278 青龙用空行隔开

空行隔开了执行不出现乱码了,但是执行第一个账号,这是咋回事啊?

@ghost
Copy link

ghost commented Jul 18, 2022

@18723574278 自动拆分不要选

@18723574278
Copy link

@18723574278 自动拆分不要选

没看懂,能不能出个事例我看看,青龙消息版的

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants