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
6adb338a
Commit
6adb338a
authored
Feb 12, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绑定隐私号码
parent
e9867fbb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
1 deletion
+55
-1
config.php
application/api_broker/config.php
+1
-0
CellPhone.php
application/api_broker/controller/CellPhone.php
+52
-0
route.php
application/route.php
+2
-1
No files found.
application/api_broker/config.php
View file @
6adb338a
...
...
@@ -3,6 +3,7 @@
error_reporting
(
E_ERROR
|
E_PARSE
);
define
(
'_MESSAGE_TYPE'
,
'SecretReport'
);
define
(
'_QUEUE_NAME'
,
'Alicom-Queue-1186048444498461-SecretReport'
);
define
(
'_EXPIRATION'
,
1800
);
return
[
'jwt_key'
=>
'tonglian+123'
,
// 应用模式状态
...
...
application/api_broker/controller/CellPhone.php
0 → 100644
View file @
6adb338a
<?php
/**
* Created by PhpStorm.
* User: 43897
* Date: 2018/2/12
* Time: 14:14
*/
namespace
app\api_broker\controller
;
use
app\api_broker\extend\Basic
;
use
app\api_broker\untils\MsgDemo
;
use
app\api_broker\untils\PlsDemo
;
class
CellPhone
extends
Basic
{
protected
$code
=
200
;
protected
$data
;
protected
$msg
;
/**
* 绑定手机号
*
* @return \think\Response
* @throws \Aliyun\Core\Exception\ClientException
*/
public
function
bindAXB
()
{
$params
=
$this
->
request
->
param
();
if
(
$params
[
'phone_a'
]
||
$params
[
'phone_b'
])
{
$result
=
PlsDemo
::
bindAxb
(
$this
->
params
[
'phone_a'
],
$this
->
params
[
'phone_b'
],
_EXPIRATION
,
$params
[
'record'
]);
if
(
$result
[
'Code'
]
!=
'OK'
)
{
$this
->
code
=
101
;
$this
->
msg
=
'绑定失败'
;
}
}
else
{
$this
->
code
=
101
;
$this
->
msg
=
'phone_a or phone_b is null'
;
}
return
$this
->
response
(
$this
->
code
,
$this
->
msg
,
$this
->
data
);
}
public
function
updateBindAXB
()
{
/* $params = $this->request->param();
if ($params['phone_a'] || $params['phone_b']) {
$this->data = PlsDemo::updateSubscription($this->params['phone_a'], $this->params['phone_b'], _EXPIRATION, $params['record']);
}
return $this->response($this->code, $this->msg,$this->data);*/
}
}
\ No newline at end of file
application/route.php
View file @
6adb338a
...
...
@@ -227,7 +227,8 @@ Route::group('broker', [
'getLabelsList'
=>
[
'api_broker/label/getLabelsList'
,[
'method'
=>
'get'
]],
//标签列表
'add_phone_follow_up'
=>
[
'api_broker/broker/add_phone_follow_up'
,[
'method'
=>
'get|post'
]],
//新增-客户电话跟进
'user_search'
=>
[
'api_broker/broker/user_search'
,[
'method'
=>
'get|post'
]],
//客户搜索
'agentUserTb'
=>
[
'api_broker/Client/agentUserTb'
,
[
'method'
=>
'get '
]
],
//客户列表
'agentUserTb'
=>
[
'api_broker/Client/agentUserTb'
,
[
'method'
=>
'get'
]
],
//客户列表
'bindAXB'
=>
[
'api_broker/CellPhone/bindAXB'
,
[
'method'
=>
'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