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
606f3947
Commit
606f3947
authored
Oct 19, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
type
parent
b78ce3a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
PushMessageService.php
application/api_broker/service/PushMessageService.php
+12
-3
No files found.
application/api_broker/service/PushMessageService.php
View file @
606f3947
...
@@ -78,6 +78,7 @@ class PushMessageService
...
@@ -78,6 +78,7 @@ class PushMessageService
$agent_id
=
[];
$agent_id
=
[];
if
(
$type
==
1
)
{
if
(
$type
==
1
)
{
$data
[
'message'
]
=
"客户
{
$report_data
[
'user_name'
]
}
进场【
{
$report_data
[
'house_title'
]
}
】商铺"
;
$data
[
'message'
]
=
"客户
{
$report_data
[
'user_name'
]
}
进场【
{
$report_data
[
'house_title'
]
}
】商铺"
;
$push_type
=
5
;
}
else
{
}
else
{
$data
[
'message'
]
=
"【
{
$report_data
[
'house_title'
]
}
】商铺收款"
;
$data
[
'message'
]
=
"【
{
$report_data
[
'house_title'
]
}
】商铺收款"
;
...
@@ -97,6 +98,7 @@ class PushMessageService
...
@@ -97,6 +98,7 @@ class PushMessageService
if
(
!
empty
(
$agent_house_id
))
{
if
(
!
empty
(
$agent_house_id
))
{
$agent_id
[]
=
$agent_house_id
;
//
$agent_id
[]
=
$agent_house_id
;
//
}
}
$push_type
=
6
;
}
}
$where
[
'store_id'
]
=
$report_data
[
'report_store_id'
];
$where
[
'store_id'
]
=
$report_data
[
'report_store_id'
];
$where
[
'level'
]
=
[
'in'
,
'20,40'
];
$where
[
'level'
]
=
[
'in'
,
'20,40'
];
...
@@ -104,7 +106,8 @@ class PushMessageService
...
@@ -104,7 +106,8 @@ class PushMessageService
$agent_id
[]
=
$report_data
[
'report_agent_id'
];
$agent_id
[]
=
$report_data
[
'report_agent_id'
];
$agent_id
[]
=
$agent_store
[
'id'
];
$agent_id
[]
=
$agent_store
[
'id'
];
$this
->
record
(
2
,
0
,
$agent_id
,
$operation_id
,
$data
);
$this
->
record
(
$push_type
,
0
,
$agent_id
,
$operation_id
,
$data
);
// $this->pushAgentAllDeviceId($report_data['report_agent_id'], $title, $content);
// $this->pushAgentAllDeviceId($report_data['report_agent_id'], $title, $content);
// $this->pushAgentAllDeviceId($agent_store['id'], $title, $content);
// $this->pushAgentAllDeviceId($agent_store['id'], $title, $content);
return
;
return
;
...
@@ -297,6 +300,12 @@ class PushMessageService
...
@@ -297,6 +300,12 @@ class PushMessageService
case
4
:
case
4
:
$result
=
$m_push
->
addAgentIdArray
(
$agent_id
,
$operation_id
,
$type
,
$data
);
$result
=
$m_push
->
addAgentIdArray
(
$agent_id
,
$operation_id
,
$type
,
$data
);
break
;
break
;
case
5
:
$result
=
$m_push
->
addAgentIdArray
(
$agent_id
,
$operation_id
,
$type
,
$data
);
break
;
case
6
:
$result
=
$m_push
->
addAgentIdArray
(
$agent_id
,
$operation_id
,
$type
,
$data
);
break
;
default
:
default
:
$result
=
$m_push
->
addData
(
$data
,
$operation_id
,
$type
);
$result
=
$m_push
->
addData
(
$data
,
$operation_id
,
$type
);
}
}
...
@@ -342,10 +351,10 @@ class PushMessageService
...
@@ -342,10 +351,10 @@ class PushMessageService
$is_forbidden
=
1
;
$is_forbidden
=
1
;
break
;
break
;
case
5
:
case
5
:
$title
=
'
收款
'
;
$title
=
'
进场
'
;
break
;
break
;
case
6
:
case
6
:
$title
=
'
进场
'
;
$title
=
'
收款
'
;
break
;
break
;
}
}
...
...
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