Commit eeef527a authored by hujun's avatar hujun

添加经纪人与楼盘关系

parent e985cd85
......@@ -101,9 +101,9 @@ class Broker extends Basic
$hg = new GHousesToAgents();
switch ($params['type']) {
case 1:
$res = $hg->addAgents($params['phone'], $params['houses_id'], $params['type']);break;
$res = $hg->addAgents($params['agents_id'], $params['houses_id'], $params['type']);break;
case 2:
$res = $hg->addAgents($params['phone'], $params['houses_id'], $params['type']);break;
$res = $hg->addAgents($params['agents_id'], $params['houses_id'], $params['type']);break;
default :
$data['status'] = 101;
$data['msg'] = 'type is null';
......@@ -112,6 +112,7 @@ class Broker extends Basic
if (!count($res) > 0) {
$data['status'] = 200;
$data['msg'] = 'Data already exists';
$data['data'] = $res;
}
} else {
......
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