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