Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
ee9c2da9
Commit
ee9c2da9
authored
Jul 17, 2018
by
clone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'chat_0705' of
https://gitee.com/zwyjjc/tl_estate
into chat_0705
parents
818840d2
6ad874d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
14 deletions
+12
-14
OrderLogService.php
application/api_broker/service/OrderLogService.php
+1
-14
ChatService.php
application/chat/service/ChatService.php
+7
-0
ChatUserExt.php
application/model/ChatUserExt.php
+4
-0
No files found.
application/api_broker/service/OrderLogService.php
View file @
ee9c2da9
...
@@ -565,19 +565,6 @@ class OrderLogService
...
@@ -565,19 +565,6 @@ class OrderLogService
a.estimated_receipt_date,a.submit_agent_name, a.price,a.commission,a.role,a.agent_id,a.scale,a.scale_fee,a.create_time,b.name,b.phone"
;
a.estimated_receipt_date,a.submit_agent_name, a.price,a.commission,a.role,a.agent_id,a.scale,a.scale_fee,a.create_time,b.name,b.phone"
;
$bargainData
=
$oBargainModel
->
selectBargainListByOrderNo
(
$field_bargain
,
[
"order_id"
=>
$order_id
]);
$bargainData
=
$oBargainModel
->
selectBargainListByOrderNo
(
$field_bargain
,
[
"order_id"
=>
$order_id
]);
if
(
count
(
$bargainData
)
>
0
)
{
if
(
count
(
$bargainData
)
>
0
)
{
// foreach ($bargainData as $k=>$v) {
// if ($v['father_id'] == 0) {
// $sort++;
// $result[$sort]['step_name'] = "bargain";
// $result[$sort]['trade_type'] = $v['trade_type'];
// $result[$sort]['house_number'] = $v['house_number'];
// $result[$sort]['industry_type'] = $v['industry_type'];
// $result[$sort]['price'] = $v['price'];
// $result[$sort]['commission'] = $v['commission'];
// $result[$sort]['is_open'] = $v['is_open'];
// }
// }
$bargain_data_arr
=
$this
->
arr2TreeBargain
(
$bargainData
);
$bargain_data_arr
=
$this
->
arr2TreeBargain
(
$bargainData
);
foreach
(
$bargain_data_arr
as
$k2
=>
$v2
)
{
foreach
(
$bargain_data_arr
as
$k2
=>
$v2
)
{
$v2
[
"step_name"
]
=
"bargain"
;
$v2
[
"step_name"
]
=
"bargain"
;
...
@@ -640,7 +627,7 @@ class OrderLogService
...
@@ -640,7 +627,7 @@ class OrderLogService
$tree
[
$v
[
"father_id"
]][
'is_open'
]
=
$v
[
'is_open'
];
$tree
[
$v
[
"father_id"
]][
'is_open'
]
=
$v
[
'is_open'
];
}
}
$tree
[
$v
[
"father_id"
]][
'list'
][]
=
$v
;
$tree
[
$v
[
"father_id"
]][
'list
_array
'
][]
=
$v
;
}
}
return
$tree
;
return
$tree
;
...
...
application/chat/service/ChatService.php
View file @
ee9c2da9
...
@@ -209,6 +209,13 @@ class ChatService
...
@@ -209,6 +209,13 @@ class ChatService
$userExt
=
new
ChatUserExt
();
$userExt
=
new
ChatUserExt
();
$where
[
'only_id'
]
=
$target
;
$where
[
'only_id'
]
=
$target
;
if
(
$is_user
)
{
$where
[
'type'
]
=
2
;
}
else
{
$where
[
'type'
]
=
1
;
}
$info
=
$userExt
->
getChatUserExtByUserId
(
$where
,
'a.id,a.ext_id,a.device_id,a.push_id'
);
$info
=
$userExt
->
getChatUserExtByUserId
(
$where
,
'a.id,a.ext_id,a.device_id,a.push_id'
);
if
(
count
(
$info
)
<=
0
)
{
if
(
count
(
$info
)
<=
0
)
{
...
...
application/model/ChatUserExt.php
View file @
ee9c2da9
...
@@ -71,6 +71,10 @@ class ChatUserExt extends BaseModel
...
@@ -71,6 +71,10 @@ class ChatUserExt extends BaseModel
$where_
[
'a.is_forbidden'
]
=
0
;
$where_
[
'a.is_forbidden'
]
=
0
;
}
}
if
(
isset
(
$params
[
'type'
]))
{
$where_
[
'b.type'
]
=
$params
[
'type'
];
}
$data
=
$this
->
db
->
field
(
$field
)
$data
=
$this
->
db
->
field
(
$field
)
->
alias
(
"a"
)
->
alias
(
"a"
)
->
join
(
"chat_user b"
,
"a.ext_id = b.id"
,
"right"
)
->
join
(
"chat_user b"
,
"a.ext_id = b.id"
,
"right"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment