|
|
@@ -611,12 +611,7 @@ class PayorderBusiness
|
|
|
StreamBusiness::addStream($data['user_id'], $goodsData->pay_price, streamType45, moldType17, moldTypefild17, $data['id']);
|
|
|
} elseif ($goodsData->type == 8) {
|
|
|
|
|
|
- $protocol_money = Db::table('wa_withdraw')
|
|
|
- ->whereIn('type', [17, 10])
|
|
|
- ->where('user_id', $data['user_id'])
|
|
|
- ->sum('money');
|
|
|
-
|
|
|
- Db::table('wa_users')->where('id', $data['user_id'])->update(['is_protocol' => 1, 'protocol_time' => date('Y-m-d H:i:s'), 'protocol_money' => $protocol_money]);
|
|
|
+ Db::table('wa_users')->where('id', $data['user_id'])->update(['is_protocol' => 1, 'protocol_time' => date('Y-m-d H:i:s')]);
|
|
|
|
|
|
StreamBusiness::addStream($data['user_id'], $goodsData->pay_price, streamType45, moldType17, moldTypefild17, $data['id']);
|
|
|
}
|