Kirin 3 years ago
parent
commit
ae7305cbc0
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/models/user/UserMoney.php

+ 3 - 3
app/models/user/UserMoney.php

@@ -118,8 +118,8 @@ class UserMoney extends BaseModel
         self::beginTrans();
         try {
             $res1 = UserMoneyOrder::create(['uid' => $uid, 'to_uid' => $to_uid, 'money_type' => $money_type, 'money' => $money, 'add_time' => time()]);
-            $res2 = UserBill::expend('用户付款', $uid, $money_type, 'expend', $money, $res1->id, $balance, $mark, 1);
-            $res3 = UserBill::income('用户收款', $to_uid, $money_type, 'income', $money, $res1->id, $to_balance, $to_mark, 1);
+            $res2 = UserBill::expend('会员转出', $uid, $money_type, 'expend', $money, $res1->id, $balance, $mark, 1);
+            $res3 = UserBill::income('会员转入', $to_uid, $money_type, 'income', $money, $res1->id, $to_balance, $to_mark, 1);
             $res4 = self::where('uid', $uid)->where('money_type', $money_type)->update(['money' => $balance]);
             $res5 = self::where('uid', $to_uid)->where('money_type', $money_type)->update(['money' => $to_balance]);
             $res1 = UserMoneyOrder::where('id', $res1->id)->update(['status' => 1]);
@@ -151,7 +151,7 @@ class UserMoney extends BaseModel
      * @throws DbException
      * @throws ModelNotFoundException
      */
-    public static function expendMoney($uid, $money_type, $money, $type, $title = '用户付款', $mark = '', $from_vote = 0, $from_sub_vote = 0)
+    public static function expendMoney($uid, $money_type, $money, $type, $title = '会员转出', $mark = '', $from_vote = 0, $from_sub_vote = 0)
     {
         $user = self::initialUserMoney($uid, $money_type);
         if ($user['money'] < $money) {