|
@@ -37,8 +37,11 @@ class PublicController
|
|
|
|
|
|
public function test()
|
|
|
{
|
|
|
- $res = ShortLetterRepositories::AliSend('15068611369', ['code' => 123456], 'VERIFICATION_CODE');
|
|
|
- dump($res);
|
|
|
+ $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']]);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|