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
909081ab
Commit
909081ab
authored
Nov 22, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户电话跟进去除客户省市区查询
parent
c2ebef28
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
32 deletions
+9
-32
Broker.php
application/api_broker/controller/Broker.php
+0
-7
CallPhoneService.php
application/api_broker/service/CallPhoneService.php
+9
-10
UPhoneFollowPp.php
application/model/UPhoneFollowPp.php
+0
-15
No files found.
application/api_broker/controller/Broker.php
View file @
909081ab
...
...
@@ -340,13 +340,6 @@ class Broker extends Basic
$user_status
=
$params
[
'user_status'
];
$Users
=
new
Users
();
$result
=
$Users
->
getUserCityInfo
(
$user_id
);
if
(
$result
)
{
$params
[
'province'
]
=
$result
[
0
][
'province'
]
?
$result
[
0
][
'province'
]
:
'上海市'
;
$params
[
'city'
]
=
$result
[
0
][
'city'
]
?
$result
[
0
][
'city'
]
:
'上海市'
;
$params
[
'disc'
]
=
$result
[
0
][
'disc'
]
?
$result
[
0
][
'disc'
]
:
'黄浦区'
;
}
$UPhoneFollowPp
=
new
UPhoneFollowPp
(
$this
->
siteId
);
$result
=
$UPhoneFollowPp
->
savePhoneFollow
(
$params
);
...
...
application/api_broker/service/CallPhoneService.php
View file @
909081ab
...
...
@@ -548,17 +548,16 @@ class CallPhoneService
$array
=
explode
(
'-'
,
$v
);
$follow_where
[
'agent_id'
]
=
$array
[
0
];
$follow_where
[
'user_id'
]
=
$array
[
1
];
if
(
isset
(
$array
[
2
])){
$site_id
=
$array
[
2
];
}
else
{
$site_id
=
'10001'
;
}
$m_follow_up
=
new
UPhoneFollowPp
(
$site_id
);
$num
=
$m_follow_up
->
getFollowTotal
(
$follow_where
);
if
(
empty
(
$num
)
&&
!
empty
(
$array
[
1
]))
{
//$agent_id, $user_id, $content, $type
$m_follow_up
->
insertDefaultFollow
(
$array
[
0
],
$array
[
1
],
$content
,
0
);
if
(
empty
(
$array
[
2
])){
$this
->
redis
->
hDel
(
$user_key
,
$v
);
}
else
{
$m_follow_up
=
new
UPhoneFollowPp
(
$array
[
2
]);
$num
=
$m_follow_up
->
getFollowTotal
(
$follow_where
);
if
(
empty
(
$num
)
&&
!
empty
(
$array
[
1
]))
{
//$agent_id, $user_id, $content, $type
$m_follow_up
->
insertDefaultFollow
(
$array
[
0
],
$array
[
1
],
$content
,
0
);
$this
->
redis
->
hDel
(
$user_key
,
$v
);
}
}
}
}
...
...
application/model/UPhoneFollowPp.php
View file @
909081ab
...
...
@@ -297,21 +297,6 @@ class UPhoneFollowPp extends BaseModel
$data
[
'agent_id'
]
=
$agent_id
;
$data
[
'user_id'
]
=
$user_id
;
$data
[
'content'
]
=
$content
;
if
(
$user_id
>
0
)
{
try
{
$m_user
=
new
Users
();
$user_data
=
$m_user
->
selectUser
(
$user_id
,
'province,city,disc'
);
$data
[
'province'
]
=
$user_data
[
'province'
];
$data
[
'city'
]
=
$user_data
[
'city'
];
$data
[
'disc'
]
=
$user_data
[
'disc'
];
}
catch
(
\Exception
$e
)
{
$data
[
'province'
]
=
""
;
$data
[
'city'
]
=
""
;
$data
[
'disc'
]
=
""
;
}
}
$data
[
'type'
]
=
$type
;
return
$this
->
UPhoneFollowPp
->
insertGetId
(
$data
);
}
...
...
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