Browse Source

会员升级

Kirin 1 năm trước cách đây
mục cha
commit
29b7f3a73d

+ 3 - 0
app/services/user/AwardIntegralServices.php

@@ -271,6 +271,9 @@ class AwardIntegralServices extends BaseServices
             $update['extract_num'] = bcadd((string)$real_send, (string)$v['extract_num'], 2);
             $update['send_time'] = time();
             $this->dao->update($v['id'], $update);
+            /** @var UserBillServices $billService */
+            $billService = app()->make(UserBillServices::class);
+            $billService->income('integral_day_send', $v['uid'], $real_send, $update['num'] - $update['sent_num'], $v['id']);
             if (($update['status'] ?? 0) == 1) {
                 $this->extract($v['id'], $update['extract_num'], true);
             }

+ 8 - 0
app/services/user/UserBillServices.php

@@ -50,6 +50,14 @@ class UserBillServices extends BaseServices
             'status' => 1,
             'pm' => 1
         ],
+        'integral_day_send' => [
+            'title' => '参考分每日释放',
+            'category' => 'award_integral',
+            'type' => 'gain',
+            'mark' => '每日释放{%num%}参考分',
+            'status' => 1,
+            'pm' => 1
+        ],
         'order_promotions_give_integral' => [
             'title' => '下单优惠活动赠送消费分',
             'category' => 'integral',