Commit e4e0828f authored by pengfei's avatar pengfei

update 团长分销-结算奖励脚本

parent 0ee3393f
......@@ -201,7 +201,6 @@ class ColonelorderController extends Job
if (empty($url)) {
throw new InterfaceException(['cus' => 0]);
}
$res = HttpUtil::get($url,
['user_ids' => $userIds, 'start_time' => $startTime, 'end_time' => $endTime]);
if (!empty($res['response']['result'])) {
......@@ -282,7 +281,7 @@ class ColonelorderController extends Job
$hour = PindanActivityColonelConfigService::ACTIVITY_DEFAULT_HOUR;
$this->settlementDate = $params['date'];
$this->startTime = "{$params['date']} $hour:00:00";
$this->endTime = strtotime($this->startTime . ' +1 day');
$this->endTime = date('Y-m-d H:i:s',strtotime($this->startTime . ' +1 day'));
}
}
......
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