Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
be3d8664
Commit
be3d8664
authored
May 05, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
07c3c7c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
AppChat.php
application/chat/controller/AppChat.php
+1
-2
No files found.
application/chat/controller/AppChat.php
View file @
be3d8664
...
@@ -217,7 +217,7 @@ class AppChat extends Basic
...
@@ -217,7 +217,7 @@ class AppChat extends Basic
$data
=
[];
$data
=
[];
if
(
$file
)
{
if
(
$file
)
{
$path
=
ROOT_PATH
.
'public'
.
DS
.
'static'
.
DS
.
'chat_image'
;
$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
);
->
move
(
$path
);
if
(
$info
)
{
if
(
$info
)
{
$img_path
=
$info
->
getSaveName
();
//生成的图片路径
$img_path
=
$info
->
getSaveName
();
//生成的图片路径
...
@@ -237,7 +237,6 @@ class AppChat extends Basic
...
@@ -237,7 +237,6 @@ class AppChat extends Basic
return
$this
->
response
(
"200"
,
"request success"
,
$data
);
return
$this
->
response
(
"200"
,
"request success"
,
$data
);
}
}
/**
/**
* 获取聊天商铺信息
* 获取聊天商铺信息
* @return \think\Response
* @return \think\Response
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment