Commit 6a8e37a4 authored by zhuwei's avatar zhuwei

接口跨域

parent 362b06ef
......@@ -50,6 +50,8 @@ class Square extends Basic
public function getSquareCommentList()
{
header('Access-Control-Allow-Origin:*');
$params = $this->params;
if (!isset($params['square_id'])) {
return $this->response("101", "参数不全");
......@@ -65,6 +67,7 @@ class Square extends Basic
public function getSquareInfo(){
header('Access-Control-Allow-Origin:*');
$params = $this->params;
if (!isset($params['id'])) {
......
......@@ -199,6 +199,12 @@ class User extends Basic
return $this->response("200", "此条件没有找到数据");
}
//搜索将本城市的客户排前面
if ($app_request_source_type == 1) {
//todo 搜索将本城市的客户排前面
}
$clientService = new ClientService();
foreach ($return_user_list as $k => $v) {
/*判断是否纯房东 0:否 1:是 start*/
......@@ -220,7 +226,7 @@ class User extends Basic
$is_outstrip_twenty_four_hours = $user_service->isUserProtect($v["user_id"]);
$return_user_list[$k]['is_outstrip_twenty_four_hours'] = $is_outstrip_twenty_four_hours;
$return_user_list[$k]['is_can_look'] = $user_service->isUserAgentDirector($v["agent_id"],$this->agentId);
$return_user_list[$k]['is_can_look'] = $user_service->isUserAgentDirector($v["agent_id"], $this->agentId);
$return_user_list[$k]['user_phone'] = substr_replace($return_user_list[$k]['user_phone'], '****', 3, 4);
......
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