|
|
@@ -610,13 +610,13 @@ class PayorderBusiness
|
|
|
} elseif ($goodsData->type == 7) {
|
|
|
StreamBusiness::addStream($data['user_id'], $goodsData->pay_price, streamType45, moldType17, moldTypefild17, $data['id']);
|
|
|
} elseif ($goodsData->type == 8) {
|
|
|
- $data = Db::table('wa_withdraw')
|
|
|
+ $datawithdraw = Db::table('wa_withdraw')
|
|
|
->whereIn('type', [17, 10])
|
|
|
->where('user_id', $data['user_id'])
|
|
|
->where('status', 1)
|
|
|
->orderByDesc('id')
|
|
|
->get()->toArray();
|
|
|
- foreach ($data as $k => $v) {
|
|
|
+ foreach ($datawithdraw as $k => $v) {
|
|
|
Db::table('wa_withdraw')->where('id', $v->id)->update(['status' => 3, 'updated_at' => date('Y-m-d H:i:s')]);
|
|
|
}
|
|
|
$protocol_money = Db::table('wa_withdraw')
|