From ef19adbb26686dbcea5afb46ab1a958c209549b3 Mon Sep 17 00:00:00 2001 From: limu <610543851@qq.com> Date: Fri, 23 Feb 2024 23:17:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/command/dayUserGrowth.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/command/dayUserGrowth.php b/app/command/dayUserGrowth.php index de44e21..3363cf7 100644 --- a/app/command/dayUserGrowth.php +++ b/app/command/dayUserGrowth.php @@ -4,6 +4,7 @@ declare (strict_types=1); namespace app\command; +use app\common\model\user\ValueContributionLog; use Swoole\Coroutine\MySQL\Exception; use think\console\Command; use think\console\Input; @@ -36,6 +37,15 @@ class dayUserGrowth extends Command foreach ($user as $k => $v) { if ($v['all_value'] > 0) { $growth_num = bcdiv($v['all_value'], $v['growth_rate'], 2); + //加到log日志 + ValueContributionLog::getDB()->insert([ + 'type' => 9, + 'types_of' => 1, + 'num' => $growth_num, + 'ctime' => date('Y-m-d H:i:s'), + 'memo' => '贡献值转化增值积分', + 'user_id' => $v['uid'], + ]); $growth_num = $growth_num+$v['brokerage_price']; userModel::getDB() ->where('uid', $v['uid'])