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
0201a347
Commit
0201a347
authored
Sep 06, 2021
by
pengfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 团长分销-奖励结算脚本
parent
6a398fcf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
Colonelorder.php
application/modules/Job/controllers/Colonelorder.php
+1
-1
Colonelwallet.php
application/modules/Job/controllers/Colonelwallet.php
+4
-5
cli.ini
conf/cli.ini
+5
-1
No files found.
application/modules/Job/controllers/Colonelorder.php
View file @
0201a347
...
@@ -227,7 +227,7 @@ class ColonelorderController extends Job
...
@@ -227,7 +227,7 @@ class ColonelorderController extends Job
]);
]);
$ids
=
$res
[
'id_datetime'
][
'goods'
]
??
[];
$ids
=
$res
[
'id_datetime'
][
'goods'
]
??
[];
foreach
(
$data
as
$key
=>
$item
)
{
foreach
(
$data
as
$key
=>
$item
)
{
$data
[
$key
][
'
colonel_distributor
_pay_info_id'
]
=
$ids
[
$key
];
$data
[
$key
][
'
only
_pay_info_id'
]
=
$ids
[
$key
];
}
}
return
$data
;
return
$data
;
}
}
...
...
application/modules/Job/controllers/Colonelwallet.php
View file @
0201a347
...
@@ -63,7 +63,7 @@ class ColonelwalletController extends Job
...
@@ -63,7 +63,7 @@ class ColonelwalletController extends Job
'user_id'
=>
$payInfo
[
'colonel_user_id'
],
'user_id'
=>
$payInfo
[
'colonel_user_id'
],
'service_name'
=>
self
::
WALLET_SERVICE_NAME
,
'service_name'
=>
self
::
WALLET_SERVICE_NAME
,
'source_name'
=>
self
::
WALLET_SOURCE_NAME
,
'source_name'
=>
self
::
WALLET_SOURCE_NAME
,
'third_order_id'
=>
$payInfo
[
'
colonel_distributor
_pay_info_id'
],
'third_order_id'
=>
$payInfo
[
'
only
_pay_info_id'
],
'third_order_id_type'
=>
$payInfo
[
'type'
],
'third_order_id_type'
=>
$payInfo
[
'type'
],
'third_order_desc'
=>
self
::
getThirdOrderDesc
(
$payInfo
),
'third_order_desc'
=>
self
::
getThirdOrderDesc
(
$payInfo
),
'amount'
=>
$payInfo
[
'reward'
],
'amount'
=>
$payInfo
[
'reward'
],
...
@@ -105,7 +105,7 @@ class ColonelwalletController extends Job
...
@@ -105,7 +105,7 @@ class ColonelwalletController extends Job
'op'
=>
self
::
CAPITAL_POOL_OP
,
'op'
=>
self
::
CAPITAL_POOL_OP
,
'user_id'
=>
$payInfo
[
'colonel_user_id'
],
'user_id'
=>
$payInfo
[
'colonel_user_id'
],
'amount'
=>
$payInfo
[
'reward'
],
'amount'
=>
$payInfo
[
'reward'
],
'third_order_id'
=>
$payInfo
[
'
colonel_distributor
_pay_info_id'
],
'third_order_id'
=>
$payInfo
[
'
only
_pay_info_id'
],
'third_order_id_type'
=>
$payInfo
[
'type'
],
'third_order_id_type'
=>
$payInfo
[
'type'
],
'third_order_desc'
=>
self
::
getThirdOrderDesc
(
$payInfo
),
'third_order_desc'
=>
self
::
getThirdOrderDesc
(
$payInfo
),
];
];
...
@@ -133,7 +133,7 @@ class ColonelwalletController extends Job
...
@@ -133,7 +133,7 @@ class ColonelwalletController extends Job
// TODO 此处看后期业务发展 看是否需要封装WalletSdk
// TODO 此处看后期业务发展 看是否需要封装WalletSdk
$date
=
date
(
'Y-m-d H:i:s'
);
$date
=
date
(
'Y-m-d H:i:s'
);
return
[
return
[
'transfer_service_id'
=>
''
,
//TODO
'transfer_service_id'
=>
appConfig
(
'colonel.wallet.transfer_service_id'
),
'sign'
=>
self
::
getWalletHttpSign
(
$date
),
'sign'
=>
self
::
getWalletHttpSign
(
$date
),
'time'
=>
$date
'time'
=>
$date
];
];
...
@@ -148,8 +148,7 @@ class ColonelwalletController extends Job
...
@@ -148,8 +148,7 @@ class ColonelwalletController extends Job
*/
*/
private
function
getWalletHttpSign
(
$date
)
:
string
private
function
getWalletHttpSign
(
$date
)
:
string
{
{
$transfer_service_secret
=
''
;
//TODO
return
md5
(
$date
.
appConfig
(
'colonel.wallet.transfer_service_secret'
));
return
md5
(
$date
.
$transfer_service_secret
);
}
}
/**
/**
...
...
conf/cli.ini
View file @
0201a347
...
@@ -13,4 +13,8 @@ idgen.key = "5cfdb867e96374c7883b31d6928cc4cb"
...
@@ -13,4 +13,8 @@ idgen.key = "5cfdb867e96374c7883b31d6928cc4cb"
[prod : common]
[prod : common]
[perf : common ]
[perf : common ]
[test: common ]
[test: common ]
[dev : common ]
colonel.wallet.transfer_service_id
=
"21090614423333205002"
\ No newline at end of file
colonel.wallet.transfer_service_secret
=
"4916927cf3305292f5a524db592dfa95"
[dev : common ]
colonel.wallet.transfer_service_id
=
"21090614322322205004"
colonel.wallet.transfer_service_secret
=
"e24126c53d4507381ff800a6653611e4"
\ No newline at end of file
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