Commit f1ecef2b authored by ZhuChunYang's avatar ZhuChunYang

注释添加

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