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
260fa373
Commit
260fa373
authored
Jul 06, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加图片路径
parent
5d61d407
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
UploadFileService.php
application/api_broker/service/UploadFileService.php
+6
-0
No files found.
application/api_broker/service/UploadFileService.php
View file @
260fa373
...
...
@@ -56,18 +56,23 @@ class UploadFileService
switch
(
$type
)
{
case
'chat'
:
$path
.=
'static/chat_image/'
;
$internet_path
=
CHAT_IMG_URL
;
break
;
case
'user_header'
:
$path
.=
'static/user_header/'
;
$internet_path
=
''
;
break
;
case
'agent_header'
:
$path
.=
'static/head_portrait/'
;
$internet_path
=
''
;
break
;
case
'house_img'
:
$path
.=
'resource/lib/Attachments/images/'
;
$internet_path
=
''
;
break
;
case
'business_school'
:
$path
.=
'static/business_school/'
;
$internet_path
=
''
;
break
;
default
:
$data
[
'code'
]
=
101
;
...
...
@@ -88,6 +93,7 @@ class UploadFileService
if
(
$info
)
{
$data
[
'code'
]
=
200
;
$data
[
"msg"
][
$k
][
'img_path'
]
=
$date
.
'/'
.
$info
->
getSaveName
();
//生成的图片路径
$data
[
"msg"
][
$k
][
'internet_img_name'
]
=
$internet_path
.
$data
[
"msg"
][
$k
][
'img_path'
];
$data
[
"msg"
][
$k
][
'img_ext'
]
=
$info
->
getExtension
();
}
else
{
$data
[
'code'
]
=
101
;
...
...
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