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

[BUG]应用商店data.yml0开头的值转换后丢失问题 #6557

Open
okxlin opened this issue Sep 23, 2024 · 1 comment
Open

[BUG]应用商店data.yml0开头的值转换后丢失问题 #6557

okxlin opened this issue Sep 23, 2024 · 1 comment
Assignees

Comments

@okxlin
Copy link

okxlin commented Sep 23, 2024

联系方式

No response

1Panel 版本

v1.10.15-lts

问题描述

data.yml定义参数后,如果是0开头的数字转换后会丢失部分。

    - default: "000"
      edit: true
      envKey: TEXT-TEST1
      labelEn: TEXT-TEST1
      labelZh: TEXT-TEST1
      required: true
      type: text
    - default: "022"
      edit: true
      envKey: TEXT-TEST2
      labelEn: TEXT-TEST2
      labelZh: TEXT-TEST2
      required: true
      type: text
    - default: "000"
      edit: true
      envKey: NUMBER-TEST1
      labelEn: NUMBER-TEST1
      labelZh: NUMBER-TEST
      required: true
      type: number
    - default: "022"
      edit: true
      envKey: NUMBER-TEST2
      labelEn: NUMBER-TEST2
      labelZh: NUMBER-TEST2
      required: true
      type: number

则会在.env文件里得到:

NUMBER-TEST1=0
NUMBER-TEST2=22
TEXT-TEST1=0
TEXT-TEST2=22

重现步骤

如上述

期待的正确结果

No response

相关日志输出

No response

附加信息

No response

@wanghe-fit2cloud
Copy link
Member

感谢反馈,我们会在后续版本持续优化。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants