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
1f6f6c2f
Commit
1f6f6c2f
authored
Sep 06, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改盘方推送文案
parent
8598fafc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
PushMessageService.php
application/api_broker/service/PushMessageService.php
+1
-0
HouseService.php
application/index/service/HouseService.php
+7
-5
No files found.
application/api_broker/service/PushMessageService.php
View file @
1f6f6c2f
...
@@ -328,6 +328,7 @@ class PushMessageService
...
@@ -328,6 +328,7 @@ class PushMessageService
case
1
:
case
1
:
$result
=
$m_push
->
addHouseIdArray
(
$house_id
,
0
,
$type
,
$data
);
break
;
$result
=
$m_push
->
addHouseIdArray
(
$house_id
,
0
,
$type
,
$data
);
break
;
case
2
:
case
2
:
$data
[
'house_id'
]
=
$house_id
;
$result
=
$m_push
->
addAgentIdArray
(
$agent_id
,
$operation_id
,
$type
,
$data
);
break
;
$result
=
$m_push
->
addAgentIdArray
(
$agent_id
,
$operation_id
,
$type
,
$data
);
break
;
}
}
return
$result
;
return
$result
;
...
...
application/index/service/HouseService.php
View file @
1f6f6c2f
...
@@ -89,7 +89,7 @@ class HouseService
...
@@ -89,7 +89,7 @@ class HouseService
//案场权限人
//案场权限人
if
(
isset
(
$data
[
'agent_data'
]))
{
if
(
isset
(
$data
[
'agent_data'
]))
{
$result_agent_data
=
$this
->
releaseRelationship
(
$data
[
'agent_data'
],
$house_id
,
1
,
$agent_id
);
$result_agent_data
=
$this
->
releaseRelationship
(
$data
[
'agent_data'
],
$house_id
,
1
,
$agent_id
,
$data
[
'internal_title'
]
);
if
(
$result_agent_data
[
'status'
]
==
'fail'
)
{
if
(
$result_agent_data
[
'status'
]
==
'fail'
)
{
$result
[
'status'
]
=
'fail'
;
$result
[
'status'
]
=
'fail'
;
...
@@ -99,7 +99,7 @@ class HouseService
...
@@ -99,7 +99,7 @@ class HouseService
//盘方
//盘方
if
(
isset
(
$data
[
'agent_dish'
]))
{
if
(
isset
(
$data
[
'agent_dish'
]))
{
$result_agent_dish
=
$this
->
releaseRelationship
(
$data
[
'agent_dish'
],
$house_id
,
2
,
$agent_id
);
$result_agent_dish
=
$this
->
releaseRelationship
(
$data
[
'agent_dish'
],
$house_id
,
2
,
$agent_id
,
$data
[
'internal_title'
]
);
if
(
$result_agent_dish
[
'status'
]
==
'fail'
)
{
if
(
$result_agent_dish
[
'status'
]
==
'fail'
)
{
$result
[
'status'
]
=
'fail'
;
$result
[
'status'
]
=
'fail'
;
$result
[
'msg'
]
=
'新增或编辑盘方失败,'
.
$result_agent_dish
[
'msg'
];
$result
[
'msg'
]
=
'新增或编辑盘方失败,'
.
$result_agent_dish
[
'msg'
];
...
@@ -108,7 +108,7 @@ class HouseService
...
@@ -108,7 +108,7 @@ class HouseService
//独家方
//独家方
if
(
isset
(
$data
[
'exclusive_ids'
]))
{
if
(
isset
(
$data
[
'exclusive_ids'
]))
{
$result_exclusive_ids
=
$this
->
releaseRelationship
(
$data
[
'exclusive_ids'
],
$house_id
,
3
,
$agent_id
);
$result_exclusive_ids
=
$this
->
releaseRelationship
(
$data
[
'exclusive_ids'
],
$house_id
,
3
,
$agent_id
,
$data
[
'internal_title'
]
);
if
(
$result_exclusive_ids
[
'status'
]
==
'fail'
)
{
if
(
$result_exclusive_ids
[
'status'
]
==
'fail'
)
{
$result
[
'status'
]
=
'fail'
;
$result
[
'status'
]
=
'fail'
;
$result
[
'msg'
]
=
'新增或编辑独家方失败,'
.
$result_exclusive_ids
[
'msg'
];
$result
[
'msg'
]
=
'新增或编辑独家方失败,'
.
$result_exclusive_ids
[
'msg'
];
...
@@ -165,10 +165,11 @@ class HouseService
...
@@ -165,10 +165,11 @@ class HouseService
* @param $house_id
* @param $house_id
* @param $type
* @param $type
* @param $operation_id
* @param $operation_id
* @param $house_title
* @return bool
* @return bool
* @throws \think\exception\PDOException
* @throws \think\exception\PDOException
*/
*/
public
function
releaseRelationship
(
$agent_data
,
$house_id
,
$type
,
$operation_id
)
public
function
releaseRelationship
(
$agent_data
,
$house_id
,
$type
,
$operation_id
,
$house_title
)
{
{
if
(
empty
(
$agent_data
))
{
if
(
empty
(
$agent_data
))
{
return
false
;
return
false
;
...
@@ -249,7 +250,8 @@ class HouseService
...
@@ -249,7 +250,8 @@ class HouseService
$remark
=
'删除盘方:'
.
implode
(
','
,
$del_agent_arr
);
$remark
=
'删除盘方:'
.
implode
(
','
,
$del_agent_arr
);
$records
->
record
(
''
,
2
,
$remark
,
$house_id
);
$records
->
record
(
''
,
2
,
$remark
,
$house_id
);
$data
[
'message'
]
=
'盘方修改为:'
.
implode
(
','
,
$agent_name
);
$operation_name
=
$this
->
agent
->
getAgentsById
(
$operation_id
,
'name'
);
$data
[
'message'
]
=
'你的【'
.
$house_title
.
'】商铺,盘方被【'
.
$operation_name
.
'】修改为:'
.
implode
(
','
,
$agent_name
);
$this
->
push
->
record
(
2
,
$house_id
,
$del_agent_id
,
$operation_id
,
$data
);
$this
->
push
->
record
(
2
,
$house_id
,
$del_agent_id
,
$operation_id
,
$data
);
}
}
}
}
...
...
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