|
|
@@ -174,14 +174,13 @@ class UserExtractRepository extends BaseRepository
|
|
|
throw new ValidateException('提现金额大于等于2000时,收款人姓名必须填写');
|
|
|
}
|
|
|
if ($data['extract_type'] == self::EXTRACT_TYPE_YUE){
|
|
|
- $commission = 1;
|
|
|
+ $commission = 0;
|
|
|
}else{
|
|
|
$commission = systemConfig('extract_commission', 0);
|
|
|
}
|
|
|
|
|
|
$data['commission'] = bcdiv(bcmul((string)$data['extract_price'], (string)$commission), '100', 2);
|
|
|
$data['real_get'] = bcsub($data['extract_price'], $data['commission'], 2);
|
|
|
- var_dump( $data['commission']);die();
|
|
|
if ($data['real_get'] <= 0) throw new ValidateException('未开启该提现功能');
|
|
|
|
|
|
// 如果提现类型为微信,验证用户的微信OpenID是否存在
|