Commit da9072b5 authored by clone's avatar clone

bug

parent a39dcd47
......@@ -208,7 +208,7 @@ class AppChat extends Basic
$image = \think\Image::open($static_path);
$image->thumb(500, 500)->save($static_path); //生成缩略图
$data = [ 'file_name' => HEADERIMGURL . $img_path ];
$data = [ 'file_name' => CHAT_IMG_URL . $img_path ];
} else {
// 上传失败获取错误信息
return $this->response("101", $file->getError());
......
......@@ -15,6 +15,7 @@ define('PAGESIZE', 15); //分页每页条数
define('ADMIN_URL_TL','https://admin.tonglianjituan.com/'); //B端网址
define('CURRENT_URL', 'http://'.$_SERVER['HTTP_HOST'].DS); //取当前域名地址
define('HEADERIMGURL', CURRENT_URL . 'static'. DS . 'head_portrait/'); //头像地址
define('CHAT_IMG_URL', CURRENT_URL . 'static'. DS . 'chat_image/'); //头像地址
define('CK_IMG_URL', CURRENT_URL . '/resource/lib/Attachments/'); //ck 资源文件
return [
// +----------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment