Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
ic_server_welfare
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
a8e400c7
authored
Aug 28, 2019
by
叶明星
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加审核人
parent
63b85851
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
app/Http/Controllers/ExchangesTask.php
app/Http/Controllers/ExchangesTask.php
View file @
a8e400c7
...
...
@@ -12,10 +12,12 @@ class ExchangesTask extends Task
{
private
$data
;
private
$Exchange
;
public
function
__construct
(
$data
,
$Exchange
)
private
$audit_id
;
public
function
__construct
(
$data
,
$Exchange
,
$audit_id
=
1
)
{
$this
->
data
=
$data
;
$this
->
Exchange
=
$Exchange
;
$this
->
audit_id
=
$audit_id
;
}
// 处理任务的逻辑,运行在Task进程中,不能投递任务
public
function
handle
()
...
...
@@ -33,7 +35,7 @@ class ExchangesTask extends Task
$UserExchangModel
=
new
UserExchange
();
$Exchang
=
[
'status'
=>
1
,
'audit_id'
=>
1
,
'audit_id'
=>
$this
->
audit_id
,
'audit_reason'
=>
'系统自动审核'
];
$result
=
$UserExchangModel
->
SaveRecord
(
$this
->
data
[
'id'
]
,
$Exchang
);
...
...
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