Commit 0e6c420d authored by luhongguang's avatar luhongguang

update: 团长分销主页接口任务列表

parent 4714e44b
......@@ -64,6 +64,13 @@ class PindanActivityColonelConfigService
$day = empty($params["date"]) ? date("Y-m-d") : $params["date"];
$type = empty($params["type"]) ? ColonelDistributorConfig::TYPE_COLONEL : $params["type"];
$config = ColonelDistributorConfig::getRecord(["date" => $day, "type" => $type]);
if (empty($config)) {
$config = ColonelDistributorConfig::getRecord([
"date[<=]" => $day,
"ORDER" => ["date" => "DESC"],
"LIMIT" => 1
]);
}
$data = [];
if (!empty($config)) {
......@@ -102,7 +109,7 @@ class PindanActivityColonelConfigService
"colonel_user_id" => $params["user_id"],
"date" => $date,
]);
$num = $inviteOrderNumRes["num"];
$num = empty($inviteOrderNumRes["num"]) ? 0 : $inviteOrderNumRes["num"];
}
$configList = self::colonelConfig(["date" => $date, "type" => ColonelDistributorConfig::TYPE_COLONEL]);
......
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