|
|
@@ -37,11 +37,11 @@ class PublicController
|
|
|
|
|
|
public function test()
|
|
|
{
|
|
|
- $list = UserBill::where('title', '用户佣金转入余额')->select();
|
|
|
- foreach ($list as $v) {
|
|
|
- if ($v['type'] == 'brokerage') UserBill::where('id', $v['id'])->update(['balance' => $v['balance'] - $v['number']]);
|
|
|
- else if ($v['type'] == 'recharge') UserBill::where('id', $v['id'])->update(['balance' => $v['balance'] + $v['number']]);
|
|
|
- }
|
|
|
+// $list = UserBill::where('title', '用户佣金转入余额')->select();
|
|
|
+// foreach ($list as $v) {
|
|
|
+// if ($v['type'] == 'brokerage') UserBill::where('id', $v['id'])->update(['balance' => $v['balance'] - $v['number']]);
|
|
|
+// else if ($v['type'] == 'recharge') UserBill::where('id', $v['id'])->update(['balance' => $v['balance'] + $v['number']]);
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
/**
|