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
5b0c28f9
Commit
5b0c28f9
authored
Oct 26, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG
parent
5b6c02ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
Performance.php
application/api_broker/controller/Performance.php
+0
-4
PerformanceService.php
application/api_broker/service/PerformanceService.php
+3
-1
No files found.
application/api_broker/controller/Performance.php
View file @
5b0c28f9
...
@@ -488,10 +488,6 @@ class Performance extends Basic
...
@@ -488,10 +488,6 @@ class Performance extends Basic
$result
=
$this
->
service_
->
paylogListPcInfo
(
$params
[
"id"
],
$params
[
"type"
],
$start_day
,
$end_day
,
$page_no
,
$page_size
);
$result
=
$this
->
service_
->
paylogListPcInfo
(
$params
[
"id"
],
$params
[
"type"
],
$start_day
,
$end_day
,
$page_no
,
$page_size
);
foreach
(
$result
[
"date"
]
as
$key
=>
$val
)
{
//截取字符串前3位
$result
[
"date"
][
$key
][
'landmark'
]
=
$val
[
"landmark"
]
?
mb_substr
(
$val
[
"landmark"
],
0
,
3
,
'utf-8'
)
.
'****'
:
''
;
}
if
(
$result
[
"code"
]
==
101
)
{
if
(
$result
[
"code"
]
==
101
)
{
return
$this
->
response
(
"101"
,
$result
[
"date"
]);
return
$this
->
response
(
"101"
,
$result
[
"date"
]);
}
else
{
}
else
{
...
...
application/api_broker/service/PerformanceService.php
View file @
5b0c28f9
...
@@ -687,11 +687,13 @@ class PerformanceService
...
@@ -687,11 +687,13 @@ class PerformanceService
$params
=
$this
->
getAgentIdPcInfo
(
$id
,
$type
,
$start_time
,
$end_time
);
$params
=
$this
->
getAgentIdPcInfo
(
$id
,
$type
,
$start_time
,
$end_time
);
if
(
!
$params
)
if
(
!
$params
)
return
[
"code"
=>
101
,
"date"
=>
"传入的参数错误"
];
return
[
"code"
=>
101
,
"date"
=>
"传入的参数错误"
];
$field
=
"a.id,a.create_time,a.money,a.type,a.pay_type,c.user_name,c.user_phone,c.predict_see_time,b.id as order_id,b.house_title,h.
landmark
"
;
$field
=
"a.id,a.create_time,a.money,a.type,a.pay_type,c.user_name,c.user_phone,c.predict_see_time,b.id as order_id,b.house_title,h.
internal_address
"
;
$payLogList
=
$this
->
payLogModel
->
getAddPayLogListPcInfo
(
$params
,
$field
,
$page_no
,
$page_size
);
$payLogList
=
$this
->
payLogModel
->
getAddPayLogListPcInfo
(
$params
,
$field
,
$page_no
,
$page_size
);
//获取图片信息
//获取图片信息
foreach
(
$payLogList
as
$key
=>
$val
)
{
foreach
(
$payLogList
as
$key
=>
$val
)
{
$payLogList
[
$key
][
"user_phone"
]
=
preg_replace
(
'/(\d{3})\d{4}(\d{4})/'
,
'$1****$2'
,
$val
[
"user_phone"
]);
$payLogList
[
$key
][
"user_phone"
]
=
preg_replace
(
'/(\d{3})\d{4}(\d{4})/'
,
'$1****$2'
,
$val
[
"user_phone"
]);
$payLogList
[
$key
][
'internal_address'
]
=
$val
[
"internal_address"
]
?
mb_substr
(
$val
[
"internal_address"
],
0
,
3
,
'utf-8'
)
.
'****'
:
''
;
}
}
return
[
"code"
=>
200
,
"date"
=>
$payLogList
];
return
[
"code"
=>
200
,
"date"
=>
$payLogList
];
}
}
...
...
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