|
|
@@ -261,26 +261,6 @@ class UserExtract extends BaseController
|
|
261
|
261
|
$eb_bill = Db::name('entropy_barter_bill')->where('order_no', $extract_data['order_sn'])->where('pm', 2)->find();
|
|
262
|
262
|
Db::name('entropy_barter_user_' . $extract_data['mer_id'])->where('eb_id', $eb_bill['to_id'])->inc('wallet', $extract_data['extract_price'])->update();
|
|
263
|
263
|
}
|
|
264
|
|
-
|
|
265
|
|
- // 拒绝提现要退回提现额度
|
|
266
|
|
- if ($extract_data['withdrawal_type'] == 3) {
|
|
267
|
|
- // 提现额度
|
|
268
|
|
- Db::name('user')->where('uid',$extract_data['uid'])->inc('withdrawal_limit',$extract_data['extract_price'])->save();
|
|
269
|
|
- // 提现额度记录
|
|
270
|
|
- /** @var UserRepository $userRepository */
|
|
271
|
|
- $userRepository = app()->make(UserRepository::class);
|
|
272
|
|
- $userEntity = $userRepository->getUserEntityByUid($extract_data['uid']);
|
|
273
|
|
- $recordData = [
|
|
274
|
|
- 'user_id' => $extract_data['uid'],
|
|
275
|
|
- 'pm' => UserWithdrawalLimitRecordEnum::PM['INCOME']['code'],
|
|
276
|
|
- 'number' => $extract_data['extract_price'],
|
|
277
|
|
- 'balance' => $userEntity->withdrawalLimit,
|
|
278
|
|
- 'type_shop' => -1,
|
|
279
|
|
- 'order_sn' => '',
|
|
280
|
|
- 'remark' => '提现拒绝增加提现额度'
|
|
281
|
|
- ];
|
|
282
|
|
- Db::name('user_withdrawal_limit_records')->insert($recordData);
|
|
283
|
|
- }
|
|
284
|
264
|
}
|
|
285
|
265
|
$this->repository->switchStatus($id, $data);
|
|
286
|
266
|
Db::name('user_extract')->where('extract_id', $id)->update($data);
|