版权声明:本文为博主原创文章,未经博主允许不得转载 https://blog.csdn.net/qq_24909089/article/details/84983898
1.本来想升级到5.0.23,在根目录下更新直接升级到5.1.31感觉版本有点高了,想降到5.0.23方案如下:
进入根目录vim打开composer.json 文件
"require": {
"php": ">=5.4.0",
"topthink/framework": "^5.0",
"topthink/think-captcha": "^1.0",
"topthink/think-image": "^1.0",
"topthink/think-helper": "^1.0",
"ezyang/htmlpurifier": "^4.9"
},
主要看这块代码,想要更新到想要的版本只需要修改topthink/framework
解释:"^5.0" 前面的^会直接检测最新版本更新
修改方法1:"topthink/framework": "5.0.*" 去掉前面的^后面加*,表示更新到5.0.的最新版本
修改方法2:"topthink/framework": "5.0.23" 指定版本,表示更新到5.0.23版本
运行结果: