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
9637d106
Commit
9637d106
authored
Aug 02, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退款驳回推送
parent
6a9650cf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
3 deletions
+27
-3
PushMessageService.php
application/api_broker/service/PushMessageService.php
+8
-0
AppChat.php
application/chat/controller/AppChat.php
+1
-1
Finance.php
application/index/controller/Finance.php
+9
-1
OfficePayLog.php
application/index/controller/OfficePayLog.php
+9
-1
No files found.
application/api_broker/service/PushMessageService.php
View file @
9637d106
...
...
@@ -413,6 +413,14 @@ class PushMessageService
$title
=
'委托找铺'
;
$type
=
''
;
break
;
case
13
:
$title
=
'开盘申请'
;
$type
=
''
;
break
;
case
14
:
$title
=
'退款驳回'
;
$type
=
''
;
break
;
}
$this
->
pushAgentAllDeviceId
(
$v
[
'addressee_id'
],
$title
,
$v
[
'message'
],
$type
,
$id
,
$is_forbidden
,
$v
[
'house_id'
],
$v
[
'order_id'
]);
...
...
application/chat/controller/AppChat.php
View file @
9637d106
...
...
@@ -587,7 +587,7 @@ class AppChat extends Basic
//获取此经纪人的所有盘方楼盘id
$param
[
"addressee_id"
]
=
$params
[
"agent_id"
];
$param
[
"type"
]
=
8
;
$param
[
"type"
]
=
[
'in'
,
'8,14'
]
;
$msgModel
=
new
MPushMessage
();
$history_result
=
$msgModel
->
getListByWhere
(
$field
,
$param
,
$page_no
,
$page_size
);
...
...
application/index/controller/Finance.php
View file @
9637d106
...
...
@@ -14,6 +14,7 @@ use app\api\service\CouponService;
use
app\api_broker\service\OrderLogService
;
use
app\api_broker\service\PayLogOpenService
;
use
app\api_broker\service\PayLogService
;
use
app\api_broker\service\PushMessageService
;
use
app\api_broker\service\RedisCacheService
;
use
app\api_broker\service\VipService
;
use
app\index\extend\Basic
;
...
...
@@ -4753,7 +4754,7 @@ class Finance extends Basic
}
$refund_where
[
'is_del'
]
=
$status
=
0
;
$refund_data
=
$m_refund
->
selectRefundByOrderNo
(
'id,status,order_id'
,
$refund_where
);
$refund_data
=
$m_refund
->
selectRefundByOrderNo
(
'id,status,order_id
,agent_id
'
,
$refund_where
);
if
(
empty
(
$refund_data
[
0
][
'id'
]))
{
return
$this
->
response
(
$code
,
'没有该退款详情或审核完成'
);
...
...
@@ -4814,6 +4815,13 @@ class Finance extends Basic
$save_data
[
'status'
]
=
$status
=
4
;
$m_refund_log
->
updateData
([
'is_del'
=>
1
],
[
'refund_id'
=>
$this
->
params
[
'refund_id'
],
'status'
=>
1
,
'is_del'
=>
0
]);
$num
=
$m_refund_log
->
insertData
(
$save_data
);
$push
=
new
PushMessageService
();
$m_order
=
new
OrderModel
();
$house_title
=
$m_order
->
getOrderById
(
'house_id,house_title'
,
[
'id'
=>
$refund_data
[
0
][
'order_id'
]]);
$record_data
[
'message'
]
=
'['
.
$house_title
[
'house_title'
]
.
']退款被驳回,驳回原因:'
.
$save_data
[
'remark'
];
$record_data
[
'order_id'
]
=
$refund_data
[
0
][
'order_id'
];
$push
->
record
(
14
,
$house_title
[
'house_id'
],
[
$refund_data
[
0
][
'agent_id'
]],
$this
->
userId
,
$record_data
);
}
if
(
$num
)
{
...
...
application/index/controller/OfficePayLog.php
View file @
9637d106
...
...
@@ -6,6 +6,7 @@ namespace app\index\controller;
use
app\api_broker\service\OfficeOrderLogService
;
use
app\api_broker\service\OfficePayLogService
;
use
app\api_broker\service\PushMessageService
;
use
app\api_broker\service\RedisCacheService
;
use
app\index\extend\Basic
;
use
app\index\untils\ExportExcelUntil
;
...
...
@@ -2191,7 +2192,7 @@ class OfficePayLog extends Basic
}
$refund_where
[
'is_del'
]
=
$status
=
0
;
$refund_data
=
$m_refund
->
selectRefundByOrderNo
(
'id,status,order_id'
,
$refund_where
);
$refund_data
=
$m_refund
->
selectRefundByOrderNo
(
'id,status,order_id
,agent_id
'
,
$refund_where
);
if
(
empty
(
$refund_data
[
0
][
'id'
]))
{
return
$this
->
response
(
$code
,
'没有该退款详情或审核完成'
);
...
...
@@ -2252,6 +2253,13 @@ class OfficePayLog extends Basic
$save_data
[
'status'
]
=
$status
=
4
;
$m_refund_log
->
updateData
([
'is_del'
=>
1
],
[
'refund_id'
=>
$this
->
params
[
'refund_id'
],
'status'
=>
1
,
'is_del'
=>
0
]);
$num
=
$m_refund_log
->
insertData
(
$save_data
);
$push
=
new
PushMessageService
();
$m_order
=
new
OfficeOrderModel
();
$house_title
=
$m_order
->
getOrderById
(
'house_id,house_title'
,
[
'id'
=>
$refund_data
[
0
][
'order_id'
]]);
$record_data
[
'message'
]
=
'['
.
$house_title
[
'house_title'
]
.
']退款被驳回,驳回原因:'
.
$save_data
[
'remark'
];
$record_data
[
'order_id'
]
=
$refund_data
[
0
][
'order_id'
];
$push
->
record
(
14
,
$house_title
[
'house_id'
],
[
$refund_data
[
0
][
'agent_id'
]],
$this
->
userId
,
$record_data
);
}
if
(
$num
)
{
...
...
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