Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
Project
Project
Details
Activity
Releases
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
bp
goods
Commits
bec6095d
Commit
bec6095d
authored
Sep 10, 2021
by
pengfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 团长分销-增加获取资金池日志
parent
a0f9fc7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Colonelorder.php
application/modules/Job/controllers/Colonelorder.php
+2
-2
No files found.
application/modules/Job/controllers/Colonelorder.php
View file @
bec6095d
...
...
@@ -234,7 +234,7 @@ class ColonelorderController extends Job
$res
=
Idgen
::
get
(
appConfig
(
'idgen.partner'
),
appConfig
(
'idgen.key'
),
[],
$httpParams
);
$ids
=
$res
[
'id_datetime'
][
'goods'
]
??
[];
if
(
$count
>
count
(
$ids
))
{
throw
new
Exception
(
'请求idgen服务失败,'
.
[
'req'
=>
$httpParams
,
'res'
=>
$res
]);
throw
new
Exception
(
'请求idgen服务失败,'
.
[
'req'
=>
$httpParams
,
'res'
=>
$res
]);
}
foreach
(
$data
as
$key
=>
$item
)
{
$data
[
$key
][
'pay_info_trade_id'
]
=
$ids
[
$key
];
...
...
@@ -288,7 +288,7 @@ class ColonelorderController extends Job
$response
=
HttpUtil
::
post
(
$url
,
$httpParams
,
100000
,
3
);
$this
->
loggerInfo
(
"url=
$url
,request="
.
json_encode
(
$httpParams
)
.
";response="
.
json_encode
(
$response
));
if
(
!
isset
(
$response
[
'response'
][
'result'
][
'capital_pool_total'
]))
{
throw
new
Exception
(
'没有获取到资金池信息
'
);
throw
new
Exception
(
'没有获取到资金池信息
,'
.
[
'req'
=>
$httpParams
,
'res'
=>
$response
]
);
}
$result
=
$response
[
'response'
][
'result'
];
$balance
=
(
$result
[
'capital_pool_total'
]
-
$result
[
'capital_pool_lock'
]
-
$result
[
'capital_pool_used'
]);
...
...
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