Commit b182bb10 authored by ZhuChunYang's avatar ZhuChunYang

update

parent 877912b5
......@@ -77,7 +77,7 @@ class CoinReleaseMemberController extends BaseController
}
if ($model->load($post) && $model->validate()) {
$model->amount = $model->amount * 1e8;
if ($model->save()) {
if ($model->save(false)) {
return ['code' => 0, 'msg' => '添加成功'];
}
} else {
......
......@@ -132,9 +132,13 @@ class CoinPublishRule extends BaseActiveRecord
$timestamp = time();
}
$format = self::DATE_FORMAT[$repeat_type];
//echo $format.PHP_EOL;
$repeat = date($format, $repeat_time);
//echo $repeat.PHP_EOL;
$prefix = date(self::DATE_FORMAT_PREFIX[$repeat_type], $timestamp);
//echo $prefix.PHP_EOL;
$next_time = $prefix . $repeat;
//echo $next_time.PHP_EOL;
$next_timestamp = strtotime($next_time);
//如果小于$timestamp, 加上重复的频率
if ($next_timestamp < $timestamp) {
......
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