修改config.php文件第11,12行
线上
"imageUrlPrefix": "http://www.leition.com/", /* 图片访问路径前缀 */
"imagePathFormat": "upload/image/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */
注意编码格式,不要用记事本修改,直接代码编辑器(比如本人用的Hbuilder)里修改好后复制粘贴替换掉就OK了
线下
"imageUrlPrefix": "", /* 图片访问路径前缀 */
"imagePathFormat": "/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}", /* 上传保存路径,可以自定义保存路径和文件名格式 */