暂时关闭支付密码校验

This commit is contained in:
luofei 2024-03-21 10:28:34 +08:00
parent ff2d4582b2
commit ca07bd58a8
2 changed files with 4 additions and 3 deletions

View File

@ -124,10 +124,10 @@ class StoreOrderRepository extends BaseRepository
if (in_array($type, ['balance', 'merBalance'])) { if (in_array($type, ['balance', 'merBalance'])) {
if (empty($user['withdrawal_pwd'])) { if (empty($user['withdrawal_pwd'])) {
throw new ValidateException('请设置支付密码'); throw new ValidateException('请设置支付密码');
} elseif ($this->transPwd) { } elseif (empty($this->transPwd)) {
throw new ValidateException('请输入支付密码'); // throw new ValidateException('请输入支付密码');
} elseif (!password_verify((string)$this->transPwd, $user['withdrawal_pwd'])) { } elseif (!password_verify((string)$this->transPwd, $user['withdrawal_pwd'])) {
throw new ValidateException('支付密码错误'); // throw new ValidateException('支付密码错误');
} }
} }
if ($type === 'balance') { if ($type === 'balance') {

View File

@ -260,6 +260,7 @@ class StoreOrder extends BaseController
} }
try { 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()); return $this->repository->pay($type, $this->request->userInfo(), $groupOrder, $this->request->param('return_url'), $this->request->isApp());
} catch (\Exception $e) { } catch (\Exception $e) {
return app('json')->status('error', $e->getMessage(), ['order_id' => $groupOrder->group_order_id]); return app('json')->status('error', $e->getMessage(), ['order_id' => $groupOrder->group_order_id]);