Commit f9056a43 authored by zw's avatar zw

后台时间轴

parent ba60a1f7
...@@ -170,19 +170,23 @@ class UserLogService ...@@ -170,19 +170,23 @@ class UserLogService
*/ */
public function userLog($user_id, $site_id, $type) public function userLog($user_id, $site_id, $type)
{ {
$result = $this->orderService->selectListByUserIdAndSiteId($user_id, '', $site_id);
switch ($type){ switch ($type){
case 1: case 1:
$oReportModel = new OReportModel(); if(count($result) > 0){
$field_report = "a.id,a.create_time,a.predict_see_time,a.intro,b.id as order_id return $result[0];
,b.house_id,b.house_title,c.id as agent_id,c.name,c.img"; }else{
return $oReportModel->getReport($field_report, ["user_id" => $user_id]); return null;
}
case 2: case 2:
return $this->orderService->selectListByUserIdAndSiteId($user_id, '', $site_id); return $result;
default: default:
return null; return null;
break; break;
} }
} }
/** /**
......
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