Commit 23d1c481 authored by pengfei's avatar pengfei

Merge branch 'colonel' into develop

parents efb09faf 7d24683c
...@@ -38,13 +38,15 @@ class ColonelorderController extends Cli ...@@ -38,13 +38,15 @@ class ColonelorderController extends Cli
{ {
FileLog::info("colonel_distributor_order", '团长分销-计算奖励脚本:start'); FileLog::info("colonel_distributor_order", '团长分销-计算奖励脚本:start');
$userIdList = $this->getColonelUserIds(); $userIdList = $this->getColonelUserIds();
if (!empty($userIdList) && !empty($this->colonelConfigList)) { if (!empty($userIdList)) {
$userIdList = array_chunk($userIdList, self::DEFAULT_USER_BATCH_SIZE); $userIdList = array_chunk($userIdList, self::DEFAULT_USER_BATCH_SIZE);
$colonelPayInfoData = []; $colonelPayInfoData = [];
foreach ($userIdList as $userIds) { foreach ($userIdList as $userIds) {
$batchPayInfoData = []; $batchPayInfoData = [];
// 完成目标单数 // 完成目标单数
$batchPayInfoData[] = $this->getInviteOrderData($userIds); if (!empty($this->colonelConfigList)) {
$batchPayInfoData[] = $this->getInviteOrderData($userIds);
}
// 邀请新用户奖励 // 邀请新用户奖励
$batchPayInfoData[] = $this->getInviteNewUserData($userIds); $batchPayInfoData[] = $this->getInviteNewUserData($userIds);
$colonelPayInfoData = array_merge($colonelPayInfoData, $batchPayInfoData); $colonelPayInfoData = array_merge($colonelPayInfoData, $batchPayInfoData);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment