Commit f1ecef2b authored by ZhuChunYang's avatar ZhuChunYang

注释添加

parent b182bb10
......@@ -217,7 +217,7 @@ class CoinPublishRule extends BaseActiveRecord
/**
* 获取时间范围内的有效任务(将要执行的)
*
* zcy 判断release_time 根据$repeat 规则 在不在 $start和$end范围内
* @param string $start 时间戳
* @param string $end 时间戳
* @param integer $repeat 重复方法
......@@ -275,13 +275,13 @@ class CoinPublishRule extends BaseActiveRecord
public static function calReleaseAmountMonth($lock_present, $rel_present, $type, $repeat, $amount, $freeze, $timestamp, $month_end, $release_timestamp)
{
$result = 0;
$is_executed = self::isVariableInRange($timestamp, $month_end, $repeat, $release_timestamp);
if ($is_executed) {
$result += self::calReleaseAmount($lock_present, $rel_present, $type, $amount, $freeze, 0);
$is_need_executed = self::isVariableInRange($timestamp, $month_end, $repeat, $release_timestamp); // zcy 是否将要释放
if ($is_need_executed) {
$result += self::calReleaseAmount($lock_present, $rel_present, $type, $amount, $freeze, 0); //zcy 这次将需要释放的量
} else {
//如果是第一次添加的不计算
if ($amount * $lock_present / 100 != $freeze) {
$result += self::calReleaseAmount($lock_present, $rel_present, $type, $amount, $freeze, -1);
$result += self::calReleaseAmount($lock_present, $rel_present, $type, $amount, $freeze, -1); //zcy 这次已经释放过的量(上次释放的量)
}
}
return $result;
......
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