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

保存的剧本,icon图标丢失 #62

Open
BigYoungs opened this issue Oct 31, 2023 · 2 comments
Open

保存的剧本,icon图标丢失 #62

BigYoungs opened this issue Oct 31, 2023 · 2 comments

Comments

@BigYoungs
Copy link

当Soar的服务器地址改变后,比如原来是192.168.1.1,后来服务地址改为192.168.1.2,再打开以前保存的剧本,图标就会丢失。
原因是:剧本当时保存时,剧本里的icon保存的是"data":{"icon":"http://192.168.1.1/app/basic/start.png","name":"开始""
这就导致更换ip后,icon丢失。

@BigYoungs
Copy link
Author

BigYoungs commented Nov 1, 2023

临时修复方案:

# 进到5w的mysql容器里
docker exec -u root -it w5_mysql /bin/bash
# 操作数据库
mysql -uroot -h127.0.0.1 -pw5_12345678
# 切换db
use w5_db;
# 更新替换IP(域名)
update w5_workflow set flow_json=replace(flow_json,'原ip','新ip') where uuid="剧本的uuid";

# 返回Query OK, 1 row affected (0.01 sec),就更新好了。

@sanjinhub
Copy link
Member

迁移服务器只能这样改,如果是平台前端导入的剧本会自动修改

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

No branches or pull requests

2 participants