|
|
@@ -11,6 +11,7 @@ namespace common\helpers\bonus;
|
|
|
use common\components\ActiveRecord;
|
|
|
use common\helpers\DataBak;
|
|
|
use common\helpers\Form;
|
|
|
+use common\helpers\LoggerTool;
|
|
|
use common\helpers\Tool;
|
|
|
use common\helpers\user\Balance;
|
|
|
use common\helpers\user\Info;
|
|
|
@@ -262,7 +263,8 @@ class BonusSend extends BaseObject {
|
|
|
echo('全部奖金发放完成,耗时:'.round($t7 - $t1, 3).',内存使用:'.(round(memory_get_usage()/1024/1024, 3)).'MB'.PHP_EOL);
|
|
|
$this->_updatePercent(100);
|
|
|
} catch (\Exception $e) {
|
|
|
- $this->addError('sendBonus', sprintf('File【%s】, Line【%s】, Msg【%s】', $e->getFile(), $e->getLine(), $e->getMessage()));
|
|
|
+ LoggerTool::error('sendBonus' . sprintf('File【%s】, Line【%s】, Msg【%s】', $e->getFile(), $e->getLine(), $e->getMessage()));
|
|
|
+ $this->addError('sendBonus', sprintf('%s',$e->getMessage()));
|
|
|
return false;
|
|
|
}
|
|
|
if (count($this->_errors) > 0) {
|