From 59e03427813e1cbccef491cebeda508bf15f0c5e Mon Sep 17 00:00:00 2001 From: lingling <1077478963@qq.com> Date: Sat, 8 Mar 2025 20:26:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20UserRewardDao=20?= =?UTF-8?q?=E7=B1=BB=EF=BC=8C=E4=BC=98=E5=8C=96=E8=BD=AC=E8=B4=A6=E5=A4=87?= =?UTF-8?q?=E6=B3=A8=E4=B8=BA=E5=8F=AF=E7=BF=BB=E8=AF=91=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/dao/UserRewardDao.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app/dao/UserRewardDao.php b/app/dao/UserRewardDao.php index 7a49c00..fdd762e 100644 --- a/app/dao/UserRewardDao.php +++ b/app/dao/UserRewardDao.php @@ -65,7 +65,13 @@ class UserRewardDao self::base($userid, 2, $money, $memo); } /** - * 转账函数 + *转账函数 + * + * @param [type] $userid + * @param [type] $status + * @param [type] $money + * @param [type] $memo 备注 + * @return void */ public static function base($userid, $status, $money, $memo) { @@ -78,7 +84,7 @@ class UserRewardDao $UserReward->money = $money; $UserReward->before = $user->money; $UserReward->after = $user->money + $money; - $UserReward->memo = $memo; + $UserReward->memo = trans($memo); $UserReward->createtime2 = date('Y-m-d H:i:s'); $user->money = $UserReward->after; $user->save(); @@ -98,8 +104,7 @@ class UserRewardDao $UserReward->money = $money; $UserReward->before = $user->money; $UserReward->after = $user->money + $money; - $UserReward->memo = $memo; - $UserReward->memo = $memo; + $UserReward->memo = trans($memo); $UserReward->createtime2 = date('Y-m-d H:i:s'); $UserReward->phone = $phone; $user->money = $UserReward->after;