Commit 18daa5c1 authored by hujun's avatar hujun

返回值修改

parent b5719685
......@@ -141,14 +141,15 @@ class CellPhone extends Basic
$result['msg'] = '';
if ($data['status'] == 'success') {
$push = new PushMessageService();
$push->pushMessageById($this->userId, '客户详情', '后台拨打电话推送客户详情', 'user_info',$this->params['user_id']);
$push->pushMessageById($this->userId, '客户详情', '后台拨打电话推送客户详情', 'user_info', $this->params['user_id']);
$result['code'] = 200;
$result['data']['phone'] = $data['phone'];
} else {
$result['status'] = 101;
$result['msg'] = $data['msg'];
}
return $this->response($result['code'], $result['msg'], $data);
return $this->response($result['code'], $result['msg'], $result);
}
/**
......@@ -162,12 +163,12 @@ class CellPhone extends Basic
$data = $call_phone->agentsUnBind($this->params['phone_a'], $this->params['phone_b'], $this->params['phone_x']);
$result['msg'] = '';
if ($data['status'] == 'success') {
$result['code'] = 200;
$result['data']['phone'] = $data['phone'];
$result['code'] = 200;
$result['msg'] = '释放成功';
} else {
$result['status'] = 101;
$result['msg'] = $data['msg'];
}
return $this->response($result['code'], $result['msg'], $data);
return $this->response($result['code'], $result['msg']);
}
}
\ 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