|
|
@@ -583,4 +583,45 @@ class Task
|
|
583
|
583
|
|
|
584
|
584
|
}
|
|
585
|
585
|
|
|
|
586
|
+ public function system_subsidy()
|
|
|
587
|
+ {
|
|
|
588
|
+ $title = '系统补贴';
|
|
|
589
|
+ $map = [
|
|
|
590
|
+ 294 => 165,
|
|
|
591
|
+ 186 => 860
|
|
|
592
|
+ ];
|
|
|
593
|
+
|
|
|
594
|
+ foreach ($map as $uid => $money) {
|
|
|
595
|
+ $bill = [
|
|
|
596
|
+ 'uid' => $uid,
|
|
|
597
|
+ 'link_id' => 0,
|
|
|
598
|
+ 'pm' => 1,
|
|
|
599
|
+ 'title' => $title,
|
|
|
600
|
+ 'category' => 'now_money',
|
|
|
601
|
+ 'type' => 'commission',
|
|
|
602
|
+ 'number' => $money,
|
|
|
603
|
+ 'balance' => 0,
|
|
|
604
|
+ 'mark' => $title,
|
|
|
605
|
+ 'create_time' => date('Y-m-d H:i:s'),
|
|
|
606
|
+ 'status' => 1,
|
|
|
607
|
+ 'commission_type' => CommonEnum::COMMISSION_TYPE['SYSTEM_SUBSIDY_COMMISSION']['code'],
|
|
|
608
|
+ 'order_sn' => 0,
|
|
|
609
|
+ 'tripartite' => 0,
|
|
|
610
|
+ 'type_shop' => 0,
|
|
|
611
|
+ 'mer_id' => 0,
|
|
|
612
|
+ 'source' => 0,
|
|
|
613
|
+ 'order_type' => 1,
|
|
|
614
|
+ 'is_red_brokerage' => 0,
|
|
|
615
|
+ 'gzc' => 3,
|
|
|
616
|
+ 'take_time' => time(),
|
|
|
617
|
+ 'district_id' => '',
|
|
|
618
|
+ 'street_id' => '',
|
|
|
619
|
+ 'month' => '',
|
|
|
620
|
+ ];
|
|
|
621
|
+ $a = Db::name('user_bill')->insert($bill);
|
|
|
622
|
+
|
|
|
623
|
+ $b = Db::name('user')->where('uid', $uid)->inc('brokerage_price', $money)->update();
|
|
|
624
|
+ }
|
|
|
625
|
+
|
|
|
626
|
+ }
|
|
586
|
627
|
}
|