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
45441145
Commit
45441145
authored
Nov 26, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常捕获
parent
84e113ad
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
CallPhoneService.php
application/api_broker/service/CallPhoneService.php
+1
-1
BrokerService.php
application/index/service/BrokerService.php
+1
-1
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+14
-5
No files found.
application/api_broker/service/CallPhoneService.php
View file @
45441145
...
...
@@ -185,7 +185,7 @@ class CallPhoneService
}
if
(
!
empty
(
$call_phone
[
'phone'
]))
{
$call_key
=
$this
->
phone_a
.
'
-
'
.
$call_phone
[
'phone'
]
.
'_'
.
$this
->
phone_b
.
'_'
.
$this
->
is_privacy
;
$call_key
=
$this
->
phone_a
.
'
_
'
.
$call_phone
[
'phone'
]
.
'_'
.
$this
->
phone_b
.
'_'
.
$this
->
is_privacy
;
$this
->
redis
->
set
(
$call_key
,
$agent_id
.
'_'
.
$user_id
.
'_'
.
$user_type
,
$time_out
);
}
...
...
application/index/service/BrokerService.php
View file @
45441145
...
...
@@ -126,7 +126,7 @@ class BrokerService
$old_site_id
=
$m_district
->
getDistrictKeyById
(
'site_id'
,
[
'id'
=>
$agent_data
[
'district_id'
]]);
$new_site_id
=
$m_district
->
getDistrictKeyById
(
'site_id'
,
[
'id'
=>
$data
[
'district_id'
]]);
if
(
$old_site_id
!=
$new_site_id
&&
empty
(
$data
[
'confirm_old'
])
)
{
if
(
$old_site_id
!=
$new_site_id
&&
$data
[
'confirm_old'
]
!=
1
)
{
$result
[
'msg'
]
=
'编辑部门,导致所属城市不一致'
;
return
$result
;
}
...
...
application/task/controller/PrivacyNumber.php
View file @
45441145
...
...
@@ -91,6 +91,7 @@ class PrivacyNumber
*/
public
function
addReportV2
()
{
try
{
$post_data
=
Request
::
instance
()
->
param
();
$save_data_arr
=
$save_data
=
[];
foreach
(
$post_data
as
$k
=>
$v
)
{
...
...
@@ -98,12 +99,11 @@ class PrivacyNumber
$save_data
[
'report_id'
]
=
$v
[
'id'
];
unset
(
$save_data
[
'id'
]);
//阿里大于返回是的id改为report_id
$info
=
$this
->
redis
->
get
(
$v
[
'phone_no'
]
.
'_'
.
$v
[
'secret_no'
]
.
'_'
.
$v
[
'peer_no'
]
.
'_0
'
);
$info
=
$this
->
redis
->
get
(
$v
[
'phone_no'
]
.
'_'
.
$v
[
'secret_no'
]
.
'_'
.
$v
[
'peer_no'
]
.
'_1
'
);
if
(
empty
(
$info
))
{
if
(
$v
[
'phone_no'
])
{
$agent_where
[
'phone'
]
=
$v
[
'phone_no'
];
$agent_where
[
'status'
]
=
0
;
$agent_where
[
'password'
]
=
[
'NOT NULL'
];
$agent_id
=
$this
->
m_agent
->
getAgentsByWhere
(
$agent_where
,
'id'
);
if
(
empty
(
$agent_id
))
{
$phone_where
[
'phone'
]
=
$v
[
'phone_no'
];
...
...
@@ -144,7 +144,11 @@ class PrivacyNumber
Log
::
write
(
json_encode
(
$save_data
),
'AliYunSecretReport'
);
//记录日志
}
$this
->
m_secret_report
->
insertDataAll
(
$save_data_arr
);
return
json_encode
([
'code'
=>
0
,
'msg'
=>
'接收成功'
]);
$return
=
json_encode
([
'code'
=>
0
,
'msg'
=>
'接收成功'
]);
}
catch
(
\Exception
$e
)
{
$return
=
json_encode
([
'code'
=>
""
,
'msg'
=>
$e
->
getMessage
()]);
}
return
$return
;
}
/**
...
...
@@ -312,6 +316,7 @@ class PrivacyNumber
*/
public
function
rongBilledInformUrl
()
{
try
{
$params
=
Request
::
instance
()
->
param
();
/*搜索A经纪人agent_id and B客户 user_id */
...
...
@@ -343,7 +348,7 @@ class PrivacyNumber
'call_type'
=>
$call_type
,
];
$info
=
$this
->
redis
->
get
(
$phone_a
.
'_'
.
$params
[
'servingNum'
]
.
'_'
.
$phone_b
.
'_1
'
);
$info
=
$this
->
redis
->
get
(
$phone_a
.
'_'
.
$params
[
'servingNum'
]
.
'_'
.
$phone_b
.
'_2
'
);
if
(
empty
(
$info
))
{
if
(
$phone_a
)
{
$agent_where
[
'phone'
]
=
$phone_a
;
...
...
@@ -381,7 +386,11 @@ class PrivacyNumber
$m_service
->
saveCallNumByUserId
(
$data
[
'users_id'
]);
}
Log
::
write
(
$str
,
'rongBilledInformUrl'
);
//记录日志
return
json_encode
([
"statusCode"
=>
'000000'
,
'msg'
=>
'接收成功'
]);
$return
=
json_encode
([
"statusCode"
=>
'000000'
,
'msg'
=>
'接收成功'
]);
}
catch
(
\Exception
$e
)
{
$return
=
json_encode
([
"statusCode"
=>
''
,
'msg'
=>
$e
->
getMessage
()
]);
}
return
$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