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
dd92db88
Commit
dd92db88
authored
Oct 22, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
记录分享拨打,去除token验证
# Conflicts: # application/api/extend/Basic.php
parent
86729a1c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
1 deletion
+40
-1
Broker.php
application/api/controller/Broker.php
+37
-1
Basic.php
application/api/extend/Basic.php
+2
-0
route.php
application/route.php
+1
-0
No files found.
application/api/controller/Broker.php
View file @
dd92db88
...
@@ -288,7 +288,7 @@ class Broker extends Basic
...
@@ -288,7 +288,7 @@ class Broker extends Basic
if
(
empty
(
$this
->
params
[
'phone'
]))
{
if
(
empty
(
$this
->
params
[
'phone'
]))
{
$agents_data
=
$m_agents
->
getAgentInfo
(
'id,update_time,call_number'
,
$this
->
params
[
'agent_id'
]);
$agents_data
=
$m_agents
->
getAgentInfo
(
'id,update_time,call_number'
,
$this
->
params
[
'agent_id'
]);
}
else
{
}
else
{
$agents_data
=
$m_agents
->
getAgentInfo
(
'id,update_time,call_number'
,
''
,
[
'agent_id'
,
$this
->
params
[
'agent_id'
]]);
$agents_data
=
$m_agents
->
getAgentInfo
(
'id,update_time,call_number'
,
''
,
[
'agent_id'
=>
$this
->
params
[
'agent_id'
]]);
}
}
$insert_data
[
'update_time'
]
=
$agents_data
[
'update_time'
];
$insert_data
[
'update_time'
]
=
$agents_data
[
'update_time'
];
...
@@ -303,4 +303,40 @@ class Broker extends Basic
...
@@ -303,4 +303,40 @@ class Broker extends Basic
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]);
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]);
}
}
/**
* 记录客户拨打经纪人次数(分享使用)
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
recordCallNumShare
()
{
$data
[
'status'
]
=
200
;
$data
[
'data'
]
=
[];
$data
[
'msg'
]
=
''
;
if
(
$this
->
params
[
'agent_id'
]
>
0
)
{
$redis
=
new
VerifyRepetitionService
();
$is
=
$redis
->
verifyStart
(
2
,
$this
->
params
[
'phone'
],
0
);
if
(
$is
)
{
$m_agents
=
new
AAgents
();
$agents_data
=
$m_agents
->
getAgentInfo
(
'id,update_time,call_number'
,
''
,
[
'agent_id'
=>
$this
->
params
[
'agent_id'
]]);
$insert_data
[
'update_time'
]
=
$agents_data
[
'update_time'
];
$insert_data
[
'call_number'
]
=
$agents_data
[
'call_number'
]
+
1
;
$data
[
'data'
]
=
$m_agents
->
editData
(
$insert_data
,
$agents_data
[
'id'
]);
}
}
else
{
$data
[
'status'
]
=
101
;
$data
[
'msg'
]
=
'agent_id is null'
;
}
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]);
}
}
}
application/api/extend/Basic.php
View file @
dd92db88
...
@@ -66,6 +66,8 @@ class Basic extends Controller
...
@@ -66,6 +66,8 @@ class Basic extends Controller
"api/getVersionNoV2"
,
"api/getVersionNoV2"
,
"api/getMarchInList"
,
"api/getMarchInList"
,
"api/addSublet"
,
"api/addSublet"
,
"api/getSiteListApp"
,
"api/recordCallNumShare"
);
);
/**
/**
...
...
application/route.php
View file @
dd92db88
...
@@ -351,6 +351,7 @@ Route::group('api', [
...
@@ -351,6 +351,7 @@ Route::group('api', [
//post broker
//post broker
'appraiser'
=>
[
'api/broker/appraiser'
,
[
'method'
=>
'post'
]
],
//评价经纪人
'appraiser'
=>
[
'api/broker/appraiser'
,
[
'method'
=>
'post'
]
],
//评价经纪人
'recordCallNum'
=>
[
'api/broker/recordCallNum'
,
[
'method'
=>
'post'
]
],
//记录拨打经纪人号码
'recordCallNum'
=>
[
'api/broker/recordCallNum'
,
[
'method'
=>
'post'
]
],
//记录拨打经纪人号码
'recordCallNumShare'
=>
[
'api/broker/recordCallNumShare'
,
[
'method'
=>
'post'
]
],
//记录拨打经纪人号码
//get member
//get member
'logout'
=>
[
'api/member/logout'
,
[
'method'
=>
'get'
]
],
'logout'
=>
[
'api/member/logout'
,
[
'method'
=>
'get'
]
],
...
...
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