Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
f39cd035
...
f39cd0354485c8d31f71a59a5ef52906473e8f62
authored
2021-11-17 11:02:25 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改同步脚本
1 parent
c140375e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
app/Console/Commands/StakeholderIncomeSyncCommand.php
app/Console/Commands/StakeholderIncomeSyncCommand.php
View file @
f39cd03
...
...
@@ -142,9 +142,23 @@ class StakeholderIncomeSyncCommand extends Command
*/
private
function
consumeTask
(
$http_res
,
$redis
,
$key
,
$id
)
{
if
(
empty
(
$http_res
))
{
return
$redis
->
xdel
(
$key
,
[
$id
]);
}
else
{
switch
(
intval
(
$http_res
[
'code'
]))
{
case
0
:
//同步成功
case
501
://
入账类型不支持,请查阅入账类型字典
10016
case
502
://
该用户或机构在分贝平台不存在,入账失败
case
503
://
入账金额计算有误,总金额
=
可提现金额
+
税费
case
504
://
请勿重复入账
case
506
://
子账单汇总金额与一级账单总金额不一致
case
507
://
子账单付款公司与一级账单付款公司不一致
$redis
->
xdel
(
$key
,
[
$id
]);
break
;
case
500
:
//无访问权限
break
;
}
}
}
/**
...
...
Please
register
or
sign in
to post a comment