Commit 6ffb21b8 authored by 顾文旭's avatar 顾文旭

Job 定时任务

parent 92c44150
......@@ -5,6 +5,7 @@
* Date: 2021/9/3 2:23 下午
*/
use App\Base\Base;
use App\Base\Job;
use Api\PhpServices\Idgen\Idgen;
use App\Models\marketing\mysql\ColonelDistributorColonel;
......@@ -19,7 +20,7 @@ use App\Services\marketing\PindanActivityColonelConfigService;
use Api\PhpUtils\Log\JobLog;
use App\Services\marketing\ColonelService;
class ColonelorderController extends Job
class ColonelorderController extends Base
{
const REWARD_UNIT = 100; // 奖励单位: 分
const INVITE_NEW_USER_REWARD = 3 * self::REWARD_UNIT; // 邀请新用户奖励
......@@ -330,7 +331,7 @@ class ColonelorderController extends Job
private function loadTimeConfig()
{
// 如果传入时间-使用指定时间
$params = $this->getRequest()->getParams();
$params = $this->params;
if (empty($params['date']) || !strtotime($params['date'])) {
$timeRange = PindanActivityColonelConfigService::getSettlementTimeRange();
$this->settlementDate = $timeRange['date'];
......
......@@ -5,13 +5,14 @@
* Date: 2021/9/3 2:23 下午
*/
use App\Base\Base;
use App\Base\Job;
use App\Models\marketing\mysql\ColonelDistributorPayInfo;
use Api\PhpUtils\Http\HttpUtil;
use Api\PhpUtils\Log\JobLog;
use App\Services\marketing\ColonelService;
class ColonelwalletController extends Job
class ColonelwalletController extends Base
{
const CAPITAL_POOL_OP = 200; //200:团长奖励
const WALLET_SERVICE_NAME = 10; // 10生活圈优惠券,11营销活动
......
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