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
729af618
Commit
729af618
authored
Aug 31, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c端图库-获取图片列表
parent
6275f048
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ImageDepot.php
application/api/controller/ImageDepot.php
+2
-3
route.php
application/route.php
+1
-0
No files found.
application/api/controller/ImageDepot.php
View file @
729af618
...
@@ -113,12 +113,11 @@ class ImageDepot extends Basic
...
@@ -113,12 +113,11 @@ class ImageDepot extends Basic
$res_total
=
$this
->
imageDepot
->
getImageDepotListTotal
(
$params_
);
$res_total
=
$this
->
imageDepot
->
getImageDepotListTotal
(
$params_
);
foreach
(
$res
as
$k
=>
$v
)
foreach
(
$res
as
$k
=>
$v
)
{
{
$res
[
$k
][
"user_phone"
]
=
preg_replace
(
'/(\d{3})\d{4}(\d{4})/'
,
'$1****$2'
,
$v
[
"user_phone"
]);
$res
[
$k
][
'img_file_path'
]
=
CURRENT_URL
.
'static/shop_image_depot/'
.
$v
[
'img_name'
];;
}
}
$data
[
'total'
]
=
$res_total
;
$data
[
'total'
]
=
$res_total
;
$data
[
'
user_date
'
]
=
$res
;
$data
[
'
list
'
]
=
$res
;
return
$this
->
response
(
"200"
,
"成功"
,
$data
);
return
$this
->
response
(
"200"
,
"成功"
,
$data
);
}
}
...
...
application/route.php
View file @
729af618
...
@@ -381,6 +381,7 @@ Route::group('api', [
...
@@ -381,6 +381,7 @@ Route::group('api', [
//c端商铺图库相关
//c端商铺图库相关
'addImageDepot'
=>
[
'api/ImageDepot/addImageDepot'
,
[
'method'
=>
'get | post'
]
],
//上传保存图片
'addImageDepot'
=>
[
'api/ImageDepot/addImageDepot'
,
[
'method'
=>
'get | post'
]
],
//上传保存图片
'getImageTypeLabel'
=>
[
'api/ImageDepot/getImageTypeLabel'
,
[
'method'
=>
'get | post'
]
],
//获取图片类型与标签
'getImageTypeLabel'
=>
[
'api/ImageDepot/getImageTypeLabel'
,
[
'method'
=>
'get | post'
]
],
//获取图片类型与标签
'getImageDepotList'
=>
[
'api/ImageDepot/getImageDepotList'
,
[
'method'
=>
'get | post'
]
],
//获取图片列表
...
...
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