Commit cfefcba9 authored by hujun's avatar hujun

[0]

parent 948011a0
......@@ -90,11 +90,11 @@ class AppointmentTime extends Basic
$user_where['a.id'] = $this->userId;
$user_where['b.site_id'] = $site_id;
$appoint_agent_id = $m_user->getAgentByCity('c.id', $user_where);
if (empty($appoint_agent_id['id'])) {
if (empty($appoint_agent_id[0]['id'])) {
$m_house_agent = new GHousesToAgents();
$appoint_agent_id = $m_house_agent->getAgentHouseValue('agents_id',['houses_id'=>$params["house_id"],'type'=>2]);
} else {
$appoint_agent_id = $appoint_agent_id['id'];
$appoint_agent_id = $appoint_agent_id[0]['id'];
}
$addPrams = array(
'expect_time' => date("Y-m-d H:i:s", $params["expect_time"] / 1000),
......
......@@ -1101,7 +1101,7 @@ class Users extends Model
->field($field)
->alias("a")
->join("u_user_agent b","a.id = b.user_id","left")
->join("a_agents c", "a.agent_id=b.id", "left")
->join("a_agents c", "b.agent_id=c.id", "left")
->where($params)
->limit(1)
->select();
......
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