hrjy 2 rokov pred
rodič
commit
aa4f79f49b
1 zmenil súbory, kde vykonal 5 pridanie a 5 odobranie
  1. 5 5
      app/models/many/Many.php

+ 5 - 5
app/models/many/Many.php

@@ -80,7 +80,7 @@ class Many extends BaseModel
                         $user = User::where('uid', $value['uid'])->find();
                         $user['purple_integral'] += $value['price'] * 1.01;// 返还
                         $user->save();
-                        UserBill::income('种树失败返还阳光', $value['uid'], 'purple_integral', 'sbfh_purple_integral', $value['price'] * 1.01, 0, $user['purple_integral'], '打怪失败返还' . $item['name'] . '-第' . $value['stage'] . '期阳光');
+                        UserBill::income('种树失败返还阳光', $value['uid'], 'purple_integral', 'sbfh_purple_integral', $value['price'] * 1.01, 0, $user['purple_integral'], '种树失败返还' . $item['name'] . '-第' . $value['stage'] . '期阳光');
                     }
                     if ($order) {
                         foreach ($order as $value) {
@@ -90,10 +90,10 @@ class Many extends BaseModel
                             $user['paper_ticket'] += $value['price'] * 0.3;// 返还百分之三十的文票
                             $user['integral'] += $value['price'] * 0.3;// 返还百分之三十的商城积分
                             $user->save();
-                            UserBill::income('种树失败返还阳光', $value['uid'], 'purple_integral', 'sbfh_purple_integral', $value['price'] * 0.7, 0, $user['purple_integral'], '打怪失败返还' . $item['name'] . '-第' . $value['stage'] . '期阳光');
-                            UserBill::income('种树失败返还水滴', $value['uid'], 'green', 'sbfh_green', $value['price'] * 0.3, 0, $user['green_integral'], '打怪失败返还' . $item['name'] . '-第' . $value['stage'] . '期水滴');
-                            UserBill::income('种树失败返还文票', $value['uid'], 'paper_ticket', 'sbfh_paper_ticket', $value['price'] * 0.3, 0, $user['paper_ticket'], '打怪失败返还' . $item['name'] . '-第' . $value['stage'] . '期文票');
-                            UserBill::income('种树失败返还商城积分', $value['uid'], 'integral', 'sbfh_integral', $value['price'] * 0.3, 0, $user['integral'], '打怪失败返还' . $item['name'] . '-第' . $value['stage'] . '期商城积分');
+                            UserBill::income('种树失败返还阳光', $value['uid'], 'purple_integral', 'sbfh_purple_integral', $value['price'] * 0.7, 0, $user['purple_integral'], '种树失败返还' . $item['name'] . '-第' . $value['stage'] . '期阳光');
+                            UserBill::income('种树失败返还水滴', $value['uid'], 'green', 'sbfh_green', $value['price'] * 0.3, 0, $user['green_integral'], '种树失败返还' . $item['name'] . '-第' . $value['stage'] . '期水滴');
+                            UserBill::income('种树失败返还文票', $value['uid'], 'paper_ticket', 'sbfh_paper_ticket', $value['price'] * 0.3, 0, $user['paper_ticket'], '种树失败返还' . $item['name'] . '-第' . $value['stage'] . '期文票');
+                            UserBill::income('种树失败返还商城积分', $value['uid'], 'integral', 'sbfh_integral', $value['price'] * 0.3, 0, $user['integral'], '种树失败返还' . $item['name'] . '-第' . $value['stage'] . '期商城积分');
                         }
                     }
                     ManyOrder::where('many_id', '=', $item['id'])->where('stage', 'in', [$item['stage'] - 3, $item['stage'], $item['stage'] - 2, $item['stage'] - 1])->update(['status' => 2]);