暂时关闭支付密码校验
This commit is contained in:
parent
ff2d4582b2
commit
ca07bd58a8
@ -124,10 +124,10 @@ class StoreOrderRepository extends BaseRepository
|
||||
if (in_array($type, ['balance', 'merBalance'])) {
|
||||
if (empty($user['withdrawal_pwd'])) {
|
||||
throw new ValidateException('请设置支付密码');
|
||||
} elseif ($this->transPwd) {
|
||||
throw new ValidateException('请输入支付密码');
|
||||
} elseif (empty($this->transPwd)) {
|
||||
// throw new ValidateException('请输入支付密码');
|
||||
} elseif (!password_verify((string)$this->transPwd, $user['withdrawal_pwd'])) {
|
||||
throw new ValidateException('支付密码错误');
|
||||
// throw new ValidateException('支付密码错误');
|
||||
}
|
||||
}
|
||||
if ($type === 'balance') {
|
||||
|
@ -260,6 +260,7 @@ class StoreOrder extends BaseController
|
||||
}
|
||||
|
||||
try {
|
||||
$this->repository->transPwd = $this->request->post('withdrawal_pwd');
|
||||
return $this->repository->pay($type, $this->request->userInfo(), $groupOrder, $this->request->param('return_url'), $this->request->isApp());
|
||||
} catch (\Exception $e) {
|
||||
return app('json')->status('error', $e->getMessage(), ['order_id' => $groupOrder->group_order_id]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user