自定义命令

发布时间:2024-07-13 10:31:51


自定义命令

根目录配置文件configconsole.php中查看具体命令

1 自动同步路由权限

php think menu

2 整理权限层级关系

php think menu:format

3 将所有商品加入到spu表

php think spu

4 清除缓存素材

php think clear:attachment

5 清除所有数据,除了配置类的基础数据

php think clear:merchant

6 清除已删除的商户数据,

php think clear:redundancy

7 重置平台管理员的密码

php think reset:password

使用方法 :https://q.crmeb.net/thread/6681

8 修改图片地址前缀

php think reset:imagePath

使用方法:php think reset:imagePath http://old.com. --url http://new.com,会将所有的http://old.com开头的图片替换成 http://new.com开头


陕公网安备61010302001146号 陕ICP备20004235号-1 统一社会信用代码:91610136MA6X4Q9H74 中华人民共和国企业征信业务 经营备案证:G1011010100881000J 中华人民共和国增值电信业务 经营许可证编号:陕B2-20230327 工商营业执照和企业经营许可证

版权所有 © 2017-2023 西安优嘉米特商业运营管理有限公司, 保留一切权利 隐私保护 | 法律声明

备案信息综合查询 点击查询