Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
57ac454d
authored
Apr 27, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整申请收款
parent
72d738a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
app/Model/PayExtendModel.php
app/Model/PayExtendModel.php
View file @
57ac454d
...
...
@@ -32,13 +32,15 @@ class PayExtendModel extends Model
$event
=
'申请收款'
;
if
(
$id
)
{
// 更新
$pay_extend
=
$this
->
where
(
'order_id'
,
$data
[
'order_id'
])
->
first
();
if
(
$pay_extend
)
{
// 更新
$data
[
'update_uid'
]
=
$request
->
user
->
userId
;
$pay_extend_info
=
$this
->
find
(
$id
);
$pay_extend_info
=
$this
->
find
(
$
pay_extend
->
id
);
$event
.=
',修改前:支付方式 - '
.
$this
->
pay_type
[
$pay_extend_info
[
'type'
]]
.
';转账凭证 - '
.
$pay_extend_info
[
'file_name'
]
.
',备注:'
.
$pay_extend_info
[
'remark'
];
$res
=
$this
->
where
(
'id'
,
$id
)
->
update
(
$data
);
$res
=
$this
->
where
(
'id'
,
$
pay_extend
->
id
)
->
update
(
$data
);
if
(
$res
===
false
)
return
[
-
1
,
'申请收款更新失败'
];
}
else
{
// 新增
...
...
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