|
@@ -212,11 +212,12 @@ class StoreOrderController
|
|
|
$store = SystemStore::get($info['store_id']);
|
|
|
$extractInfo = UtilService::postMore([
|
|
|
['money', 0],
|
|
|
+ ['bankname', ''],
|
|
|
+ ['name', ''],
|
|
|
+ ['cardnum', ''],
|
|
|
], $request);
|
|
|
$extractInfo['extract_type'] = 'bank';
|
|
|
- $extractInfo['name'] = $store['leader'];
|
|
|
- $extractInfo['bankname'] = $store['bank_name'];
|
|
|
- $extractInfo['cardnum'] = $store['bank_card'];
|
|
|
+ $extractInfo['name'] = $extractInfo['name'] ?? $store['leader'];
|
|
|
if (!preg_match('/^(([1-9]\d*)|0)(\.\d{1-2})?$/', $extractInfo['money'])) app('json')->fail('提现金额输入有误');
|
|
|
$store = SystemStore::get($info['store_id']);
|
|
|
if ($extractInfo['money'] > $store['brokerage_price']) return app('json')->fail('可提现佣金不足');
|