Commit be3d8664 authored by clone's avatar clone

bug

parent 07c3c7c2
......@@ -217,7 +217,7 @@ class AppChat extends Basic
$data = [];
if ($file) {
$path = ROOT_PATH . 'public' . DS . 'static' . DS . 'chat_image';
$info = $file->validate([ 'size' => 5120000, 'ext' => 'jpg,png' ])//限制500KB
$info = $file->validate([ 'size' => 1024000, 'ext' => 'jpg,png' ])//限制100m
->move($path);
if ($info) {
$img_path = $info->getSaveName(); //生成的图片路径
......@@ -237,7 +237,6 @@ class AppChat extends Basic
return $this->response("200", "request success", $data);
}
/**
* 获取聊天商铺信息
* @return \think\Response
......
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