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
f640660c
Commit
f640660c
authored
Sep 20, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
other_id
parent
5eda0a72
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
AppointmentTime.php
application/api/controller/AppointmentTime.php
+2
-7
PushClientService.php
application/api/service/PushClientService.php
+2
-0
OrderLog.php
application/api_broker/controller/OrderLog.php
+1
-1
OPushMessageModel.php
application/model/OPushMessageModel.php
+4
-0
No files found.
application/api/controller/AppointmentTime.php
View file @
f640660c
...
@@ -350,21 +350,16 @@ class AppointmentTime extends Basic
...
@@ -350,21 +350,16 @@ class AppointmentTime extends Basic
*/
*/
public
function
checkAppointment
()
public
function
checkAppointment
()
{
{
$data
[
'name'
]
=
$msg
=
""
;
$msg
=
""
;
$data
=
[];
try
{
try
{
$m_push
=
new
OPushMessageModel
();
$m_push
=
new
OPushMessageModel
();
$where
[
'user_id'
]
=
$this
->
userId
;
$where
[
'user_id'
]
=
$this
->
userId
;
// $where['user_id'] = 3;
$where
[
'status'
]
=
0
;
$where
[
'status'
]
=
0
;
$where
[
'type'
]
=
[
'in'
,
'0,3'
];
$where
[
'type'
]
=
[
'in'
,
'0,3'
];
$field
=
'id,operation_id,house_id,message,type,other_id'
;
$field
=
'id,operation_id,house_id,message,type,other_id'
;
$id
=
$m_push
->
getListByWhere
(
$field
,
$where
,
1
,
1
);
$id
=
$m_push
->
getListByWhere
(
$field
,
$where
,
1
,
1
);
if
(
!
empty
(
$id
[
0
][
'id'
]))
{
if
(
!
empty
(
$id
[
0
][
'id'
]))
{
// $data['is_alert'] = 0;
// $data['string_1'] = '';
// $data['string_2'] = '';
// } else {
$data
[
'name'
]
=
$id
[
0
][
'message'
];
$data
[
'name'
]
=
$id
[
0
][
'message'
];
$data
[
'is_alert'
]
=
1
;
$data
[
'is_alert'
]
=
1
;
$data
[
'type'
]
=
$id
[
0
][
'type'
];
$data
[
'type'
]
=
$id
[
0
][
'type'
];
...
...
application/api/service/PushClientService.php
View file @
f640660c
...
@@ -31,6 +31,8 @@ class PushClientService
...
@@ -31,6 +31,8 @@ class PushClientService
* @param int $type
* @param int $type
* @param $message
* @param $message
* @param int $operation_id
* @param int $operation_id
* @param int $addressee_id
* @param int $other_id
* @return bool
* @return bool
*/
*/
public
function
record
(
int
$report_id
,
int
$order_id
,
int
$type
,
$message
,
int
$operation_id
,
$addressee_id
=
0
,
$other_id
=
0
)
public
function
record
(
int
$report_id
,
int
$order_id
,
int
$type
,
$message
,
int
$operation_id
,
$addressee_id
=
0
,
$other_id
=
0
)
...
...
application/api_broker/controller/OrderLog.php
View file @
f640660c
...
@@ -93,7 +93,7 @@ class OrderLog extends Basic
...
@@ -93,7 +93,7 @@ class OrderLog extends Basic
//评价经纪人
//评价经纪人
$push_client
=
new
PushClientService
();
$push_client
=
new
PushClientService
();
$push_client
->
record
((
int
)
$params
[
"report_id"
],
(
int
)
$params
[
"order_id"
],
0
,
''
,
(
int
)
$this
->
agentId
,
0
,
$insert_id
);
$push_client
->
record
((
int
)
$params
[
"report_id"
],
(
int
)
$params
[
"order_id"
],
0
,
''
,
(
int
)
$this
->
agentId
,
0
,
$insert_id
);
//经纬度
//经纬度
if
(
!
empty
(
$params
[
'longitude'
])
&&
!
empty
(
$params
[
'latitude'
]))
{
if
(
!
empty
(
$params
[
'longitude'
])
&&
!
empty
(
$params
[
'latitude'
]))
{
...
...
application/model/OPushMessageModel.php
View file @
f640660c
...
@@ -50,6 +50,10 @@ class OPushMessageModel extends BaseModel
...
@@ -50,6 +50,10 @@ class OPushMessageModel extends BaseModel
$insert_data
[
'user_id'
]
=
$data
[
'user_id'
];
$insert_data
[
'user_id'
]
=
$data
[
'user_id'
];
}
}
if
(
isset
(
$data
[
'other_id'
]))
{
$insert_data
[
'other_id'
]
=
$data
[
'other_id'
];
}
$insert_data
[
'status'
]
=
0
;
$insert_data
[
'status'
]
=
0
;
$insert_data
[
'type'
]
=
$type
;
$insert_data
[
'type'
]
=
$type
;
$insert_data
[
'operation_id'
]
=
$operation_id
;
$insert_data
[
'operation_id'
]
=
$operation_id
;
...
...
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