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;