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
9a1c596d
Commit
9a1c596d
authored
May 05, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
be28707a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
AppChat.php
application/chat/controller/AppChat.php
+2
-1
customer_gj.js
public/app/js/customer_gj.js
+1
-1
No files found.
application/chat/controller/AppChat.php
View file @
9a1c596d
...
...
@@ -213,11 +213,12 @@ class AppChat extends Basic
public
function
uploadImg
()
{
header
(
'Access-Control-Allow-Origin:*'
);
set_time_limit
(
0
);
$file
=
request
()
->
file
(
'image'
);
$data
=
[];
if
(
$file
)
{
$path
=
ROOT_PATH
.
'public'
.
DS
.
'static'
.
DS
.
'chat_image'
;
$info
=
$file
->
validate
([
'size'
=>
1024000
,
'ext'
=>
'jpg,png'
])
//限制100m
$info
=
$file
->
validate
([
'size'
=>
1024000
0
,
'ext'
=>
'jpg,png'
])
//限制100m
->
move
(
$path
);
if
(
$info
)
{
$img_path
=
$info
->
getSaveName
();
//生成的图片路径
...
...
public/app/js/customer_gj.js
View file @
9a1c596d
...
...
@@ -238,7 +238,7 @@ require(['vue', 'vconsole', 'css!style/customerinfo_sub_page.css', 'css!style/cu
url: ServerHostTempC + "/chat/uploadImg",
type: '
POST
',
data: _fd,
timeout: 15000,
timeout: 15000
0
,
beforeSend: function() {
_this.uploadImgFlag = true;
},
...
...
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