Commit a905d4dd authored by clone's avatar clone

1

parent c901d823
...@@ -286,29 +286,28 @@ class Broker extends Basic ...@@ -286,29 +286,28 @@ class Broker extends Basic
*/ */
public function updateDevice() public function updateDevice()
{ {
$params = $this->params; $params = $this->request->param();
/* $params = array( /* $params = array(
"agent_id" => 1, "agent_id" => 1,//解绑或者绑定的经纪人id
"id" => 1, "id" => 1, //关系id
"operator_id" => 12, "operator_id" => 12,//操作人id 登陆后台的经纪人id
"is_forbidden" => 0,//0正常 1禁止 "is_forbidden" => 0,//0正常 1禁止
);*/ );*/
$checkResult = $this->validate($params, "PerformanceValidate.verifyIsForbidden"); $checkResult = $this->validate($params, "PerformanceValidate.verifyIsForbidden");
if (true !== $checkResult) { if (true !== $checkResult) {
return $this->response("101", $checkResult); return $this->response("101", $checkResult);
} }
$aBD = new ABindingDevice();
try { try {
$id = $this->aBD->updateDevice($params); $id = $aBD->updateDevice($params);
if ($id > 0) { if ($id > 0) {
return $this->response("200", "update success", ["id" => $id]); return $this->response("200", "update success", ["id" => $id]);
} else { } else {
return $this->response("101", "请求异常"); return $this->response("101", "请求异常");
} }
} catch (Exception $exception) { } catch (\Exception $exception) {
return $this->response("101", "请求错误:" . $exception); return $this->response("101", "请求错误:" . $exception->getMessage());
} }
} }
...@@ -473,15 +472,15 @@ class Broker extends Basic ...@@ -473,15 +472,15 @@ class Broker extends Basic
public function addUserPhoneFollowUpV2() public function addUserPhoneFollowUpV2()
{ {
$params = $this->params; $params = $this->params;
/* $params = array( /* $params = array(
'content' => '跟进内容', 'content' => '跟进内容',
'labels_id' => 1,//g_labels表主键 'labels_id' => 1,//g_labels表主键
'agent_id' => 1, 'agent_id' => 1,
'type' => 0,//0电话跟进 1普通跟进 'type' => 0,//0电话跟进 1普通跟进
'entrust_type' => 0,//委托类型 0找铺 1找办公楼 'entrust_type' => 0,//委托类型 0找铺 1找办公楼
'img_str' => "1123123" 'img_str' => "1123123"
); );
$this->siteId = 10001;*/ $this->siteId = 10001;*/
$checkResult = $this->validate($params, "BrokerValidate.add_phone_follow_up_verify"); $checkResult = $this->validate($params, "BrokerValidate.add_phone_follow_up_verify");
...@@ -875,9 +874,9 @@ class Broker extends Basic ...@@ -875,9 +874,9 @@ class Broker extends Basic
{ {
header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Origin:*');
$agents = new AAgents(); $agents = new AAgents();
$field = 'id,device_id,store_id,auth_group_id,district_id,position,level,name,phone,sex,img,status,'; $field = 'id,device_id,store_id,auth_group_id,district_id,position,level,name,phone,sex,img,status,';
$field .= 'inviter_id,create_time,update_time,admin_off,remarks,last_login_ip,last_login_time,quit_time,call_number,site_id'; $field .= 'inviter_id,create_time,update_time,admin_off,remarks,last_login_ip,last_login_time,quit_time,call_number,site_id';
$data = $agents->getInfo($this->agentPhone, '',true, $field); $data = $agents->getInfo($this->agentPhone, '', true, $field);
$data['openid'] = ""; $data['openid'] = "";
$data['token'] = $this->authToken; $data['token'] = $this->authToken;
return $this->response(200, "", $data); return $this->response(200, "", $data);
...@@ -1202,4 +1201,6 @@ class Broker extends Basic ...@@ -1202,4 +1201,6 @@ class Broker extends Basic
} }
} }
\ No newline at end of file
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