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
a5317652
Commit
a5317652
authored
Nov 21, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预约推送
parent
8eedf62a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
AppointmentTime.php
application/api/controller/AppointmentTime.php
+7
-0
PushMessageService.php
application/api_broker/service/PushMessageService.php
+5
-0
No files found.
application/api/controller/AppointmentTime.php
View file @
a5317652
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
namespace
app\api\controller
;
namespace
app\api\controller
;
use
app\api\extend\Basic
;
use
app\api\extend\Basic
;
use
app\api_broker\service\PushMessageService
;
use
app\model\Applies
;
use
app\model\Applies
;
use
app\model\AppointWatchShop
;
use
app\model\AppointWatchShop
;
use
app\model\Evaluate
;
use
app\model\Evaluate
;
...
@@ -101,6 +102,12 @@ class AppointmentTime extends Basic
...
@@ -101,6 +102,12 @@ class AppointmentTime extends Basic
);
);
$result
=
$this
->
appointmentTimeModel
->
insertAppointWatchShop
(
$addPrams
);
$result
=
$this
->
appointmentTimeModel
->
insertAppointWatchShop
(
$addPrams
);
if
(
$result
[
"code"
]
==
200
)
{
if
(
$result
[
"code"
]
==
200
)
{
$push
=
new
PushMessageService
();
$house_title
=
$this
->
houseInfoModel
->
getHouseValue
(
'internal_title'
,
[
'id'
=>
$params
[
'house_id'
]]);
$push_data
[
'message'
]
=
"你的[编号:
{
$params
[
'user_id'
]
}
]客户,提交预约看铺[
{
$house_title
}
]"
;
$push_data
[
'user_id'
]
=
$params
[
'user_id'
];
$push_data
[
'house_id'
]
=
$params
[
'house_id'
];
$push
->
record
(
8
,
$params
[
'house_id'
],
[
$appoint_agent_id
],
$this
->
userId
,
$push_data
);
return
$this
->
response
(
"200"
,
"数据保存成功"
,
$result
[
"msg"
]);
return
$this
->
response
(
"200"
,
"数据保存成功"
,
$result
[
"msg"
]);
}
else
{
}
else
{
return
$this
->
response
(
"101"
,
"数据保存失败"
);
return
$this
->
response
(
"101"
,
"数据保存失败"
);
...
...
application/api_broker/service/PushMessageService.php
View file @
a5317652
...
@@ -371,6 +371,11 @@ class PushMessageService
...
@@ -371,6 +371,11 @@ class PushMessageService
$type
=
'timer_shaft'
;
$type
=
'timer_shaft'
;
$id
=
$v
[
'addressee_id'
];
$id
=
$v
[
'addressee_id'
];
break
;
break
;
case
8
:
$title
=
'客户预约看铺'
;
$type
=
'appointment'
;
$id
=
$v
[
'user_id'
];
break
;
}
}
$this
->
pushAgentAllDeviceId
(
$v
[
'addressee_id'
],
$title
,
$v
[
'message'
],
$type
,
$id
,
$is_forbidden
,
$v
[
'house_id'
],
$v
[
'order_id'
]);
$this
->
pushAgentAllDeviceId
(
$v
[
'addressee_id'
],
$title
,
$v
[
'message'
],
$type
,
$id
,
$is_forbidden
,
$v
[
'house_id'
],
$v
[
'order_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