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
da9072b5
Commit
da9072b5
authored
Jan 25, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
a39dcd47
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
AppChat.php
application/chat/controller/AppChat.php
+1
-1
config.php
application/config.php
+1
-0
No files found.
application/chat/controller/AppChat.php
View file @
da9072b5
...
...
@@ -208,7 +208,7 @@ class AppChat extends Basic
$image
=
\think\Image
::
open
(
$static_path
);
$image
->
thumb
(
500
,
500
)
->
save
(
$static_path
);
//生成缩略图
$data
=
[
'file_name'
=>
HEADERIMG
URL
.
$img_path
];
$data
=
[
'file_name'
=>
CHAT_IMG_
URL
.
$img_path
];
}
else
{
// 上传失败获取错误信息
return
$this
->
response
(
"101"
,
$file
->
getError
());
...
...
application/config.php
View file @
da9072b5
...
...
@@ -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
[
// +----------------------------------------------------------------------
...
...
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