Commit 212b7d2a authored by zhuwei's avatar zhuwei

1

parent 11a37313
......@@ -300,12 +300,13 @@ class LookShopService
$m_user = new Users();
$fields = "b.id,b.buyer_nick";
$result = $m_user->getUserInfoById(['user_id'=>$user_id], $fields);
if (!$result) {
return false;
if (isset($result[0]["id"]) && $result[0]["id"] > 0) {
$conditions[] = ['EXP', "(a.user_id = {$result[0]["id"]} and a.source = 1) or (a.user_id = {$user_id} and a.source = 0)"];
}else{
$conditions['a.user_id'] = $user_id;
}
$field = 'a.type,a.create_time,a.house_id';
$conditions['a.user_id'] = $result[0]["id"];
$m_look_shop = new TLookShopUser();
$list = $m_look_shop->getLookShopList($conditions, $field, $pageNo, $pageSize);
if (!$list) {
......
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