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
31159c74
Commit
31159c74
authored
May 13, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
头像路径
parent
3fa20c58
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Broker.php
application/api_broker/controller/Broker.php
+1
-1
config.php
application/config.php
+1
-1
No files found.
application/api_broker/controller/Broker.php
View file @
31159c74
...
@@ -399,7 +399,7 @@ class Broker extends Basic
...
@@ -399,7 +399,7 @@ class Broker extends Basic
$file
=
request
()
->
file
(
'image'
);
$file
=
request
()
->
file
(
'image'
);
if
(
$file
){
if
(
$file
){
$path
=
ROOT_PATH
.
'public'
.
DS
.
'static'
.
DS
.
'
agent_head_portrait
'
;
$path
=
ROOT_PATH
.
'public'
.
DS
.
'static'
.
DS
.
'
user_header
'
;
$info
=
$file
->
validate
([
'size'
=>
512000
,
'ext'
=>
'jpg,png'
])
//限制500KB
$info
=
$file
->
validate
([
'size'
=>
512000
,
'ext'
=>
'jpg,png'
])
//限制500KB
->
move
(
$path
);
->
move
(
$path
);
if
(
$info
){
if
(
$info
){
...
...
application/config.php
View file @
31159c74
...
@@ -16,7 +16,7 @@ define('ADMIN_URL_TL','https://admin.tonglianjituan.com/'); //B端网址
...
@@ -16,7 +16,7 @@ define('ADMIN_URL_TL','https://admin.tonglianjituan.com/'); //B端网址
//define('TEST_ADMIN_URL_TL','https://dev.tonglianjituan.com/'); //B端网址
//define('TEST_ADMIN_URL_TL','https://dev.tonglianjituan.com/'); //B端网址
define
(
'CURRENT_URL'
,
'https://'
.
$_SERVER
[
'HTTP_HOST'
]
.
'/'
);
//取当前域名地址
define
(
'CURRENT_URL'
,
'https://'
.
$_SERVER
[
'HTTP_HOST'
]
.
'/'
);
//取当前域名地址
define
(
'HEADERIMGURL'
,
CURRENT_URL
.
'static'
.
DS
.
'head_portrait/'
);
//头像地址
define
(
'HEADERIMGURL'
,
CURRENT_URL
.
'static'
.
DS
.
'head_portrait/'
);
//头像地址
define
(
'AGENTHEADERIMGURL'
,
CURRENT_URL
.
'static'
.
DS
.
'
agent_head_portrait
/'
);
//头像地址
define
(
'AGENTHEADERIMGURL'
,
CURRENT_URL
.
'static'
.
DS
.
'
user_header
/'
);
//头像地址
define
(
'CHAT_IMG_URL'
,
CURRENT_URL
.
'static'
.
DS
.
'chat_image/'
);
//聊天图片地址
define
(
'CHAT_IMG_URL'
,
CURRENT_URL
.
'static'
.
DS
.
'chat_image/'
);
//聊天图片地址
define
(
'CK_IMG_URL'
,
CURRENT_URL
.
'/resource/lib/Attachments/'
);
//ck 资源文件
define
(
'CK_IMG_URL'
,
CURRENT_URL
.
'/resource/lib/Attachments/'
);
//ck 资源文件
define
(
'_POOLKEY'
,
'FC100000022056027'
);
//隐私号码
define
(
'_POOLKEY'
,
'FC100000022056027'
);
//隐私号码
...
...
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