|
|
@@ -37,35 +37,44 @@ class Task
|
|
37
|
37
|
|
|
38
|
38
|
public function testProfits()
|
|
39
|
39
|
{
|
|
40
|
|
- $bill = [
|
|
41
|
|
- 'uid' => 2393,
|
|
42
|
|
- 'link_id' => 0,
|
|
43
|
|
- 'pm' => 1,
|
|
44
|
|
- 'title' => '直推奖',
|
|
45
|
|
- 'category' => 'now_money',
|
|
46
|
|
- 'type' => 'commission',
|
|
47
|
|
- 'number' => 82.8,
|
|
48
|
|
- 'balance' => 0,
|
|
49
|
|
- 'mark' => '线下消费直推奖补发',
|
|
50
|
|
- 'create_time' => date('Y-m-d H:i:s'),
|
|
51
|
|
- 'status' => 1,
|
|
52
|
|
- 'commission_type' => CommonEnum::COMMISSION_TYPE['DIRECT_REFERRAL']['code'],
|
|
53
|
|
- 'order_sn' => 0,
|
|
54
|
|
- 'tripartite' => 0,
|
|
55
|
|
- 'type_shop' => 0,
|
|
56
|
|
- 'mer_id' => 0,
|
|
57
|
|
- 'source' => 0,
|
|
58
|
|
- 'order_type' => 1,
|
|
59
|
|
- 'is_red_brokerage' => 0,
|
|
60
|
|
- 'gzc' => 3,
|
|
61
|
|
- 'take_time' => time(),
|
|
62
|
|
- 'district_id' => '',
|
|
63
|
|
- 'street_id' => '',
|
|
64
|
|
- 'month' => '',
|
|
65
|
|
- ];
|
|
|
40
|
+ // 秒简化 李守之 赵娜
|
|
|
41
|
+ $userData = [
|
|
|
42
|
+ 4324=>110.4,
|
|
|
43
|
+ 4073=>82.8,
|
|
|
44
|
+ 2540=>55.2,
|
|
|
45
|
+ 2950=>55.2
|
|
66
|
46
|
|
|
67
|
|
- $res = Db::name('user_bill')->insert($bill);
|
|
68
|
|
- dd($res);
|
|
|
47
|
+ ];
|
|
|
48
|
+ foreach ($userData as $uid => $money) {
|
|
|
49
|
+ $bill = [
|
|
|
50
|
+ 'uid' => $uid,
|
|
|
51
|
+ 'link_id' => 0,
|
|
|
52
|
+ 'pm' => 1,
|
|
|
53
|
+ 'title' => '直推奖',
|
|
|
54
|
+ 'category' => 'now_money',
|
|
|
55
|
+ 'type' => 'commission',
|
|
|
56
|
+ 'number' => $money,
|
|
|
57
|
+ 'balance' => 0,
|
|
|
58
|
+ 'mark' => '线下消费直推奖补发',
|
|
|
59
|
+ 'create_time' => date('Y-m-d H:i:s'),
|
|
|
60
|
+ 'status' => 1,
|
|
|
61
|
+ 'commission_type' => CommonEnum::COMMISSION_TYPE['DIRECT_REFERRAL']['code'],
|
|
|
62
|
+ 'order_sn' => 0,
|
|
|
63
|
+ 'tripartite' => 0,
|
|
|
64
|
+ 'type_shop' => 0,
|
|
|
65
|
+ 'mer_id' => 0,
|
|
|
66
|
+ 'source' => 0,
|
|
|
67
|
+ 'order_type' => 1,
|
|
|
68
|
+ 'is_red_brokerage' => 0,
|
|
|
69
|
+ 'gzc' => 3,
|
|
|
70
|
+ 'take_time' => time(),
|
|
|
71
|
+ 'district_id' => '',
|
|
|
72
|
+ 'street_id' => '',
|
|
|
73
|
+ 'month' => '',
|
|
|
74
|
+ ];
|
|
|
75
|
+ $a = Db::name('user_bill')->insert($bill);
|
|
69
|
76
|
|
|
|
77
|
+ $b = Db::name('user')->where('uid',$uid)->inc('brokerage_price',$money)->update();
|
|
|
78
|
+ }
|
|
70
|
79
|
}
|
|
71
|
80
|
}
|