Commit 6adb338a authored by hujun's avatar hujun

绑定隐私号码

parent e9867fbb
......@@ -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',
// 应用模式状态
......
<?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
......@@ -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' ] ],//客户列表
]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment