Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aic_duty_strategy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
yinxiaoling
aic_duty_strategy
Commits
cc202358
Commit
cc202358
authored
May 18, 2020
by
yinxiaoling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
失败数据尝试3次操作
parent
8f5762dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
CreatedTaskCommand.php
app/Console/Commands/CreatedTaskCommand.php
+5
-0
StrategyService.php
app/Service/StrategyService.php
+1
-1
No files found.
app/Console/Commands/CreatedTaskCommand.php
View file @
cc202358
...
@@ -44,6 +44,11 @@ class CreatedTaskCommand extends Command
...
@@ -44,6 +44,11 @@ class CreatedTaskCommand extends Command
$StrategyService
=
new
StrategyService
();
$StrategyService
=
new
StrategyService
();
$StrategyService
->
createdTask
();
$StrategyService
->
createdTask
();
$StrategyService
->
createdTask
();
//对失败数据重试3次,没有失败数据直接返回
$StrategyService
->
createdTask
();
$StrategyService
->
createdTask
();
//新建任务、失败原任务重呼3次,接口调用失败重试3次
//新建任务、失败原任务重呼3次,接口调用失败重试3次
/* //$userInfo = $this->getAllowLoginUser();
/* //$userInfo = $this->getAllowLoginUser();
...
...
app/Service/StrategyService.php
View file @
cc202358
...
@@ -407,7 +407,7 @@ class StrategyService
...
@@ -407,7 +407,7 @@ class StrategyService
StrategyTask
::
where
(
'id'
,
$v
[
'id'
])
->
update
([
'created_fail_number'
=>
(
$v
[
'created_fail_number'
]
+
1
),
'create_fail_reason'
=>
$failReason
]);
//设为已创建
StrategyTask
::
where
(
'id'
,
$v
[
'id'
])
->
update
([
'created_fail_number'
=>
(
$v
[
'created_fail_number'
]
+
1
),
'create_fail_reason'
=>
$failReason
]);
//设为已创建
}
}
}
}
return
true
;
//操作结束标识
}
}
}
}
...
...
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