efps-version
ljl 2 years ago
parent fb89138d3e
commit ab517f7ab7

@ -325,9 +325,9 @@ class RechargeController extends AbstractController
if (empty($log)) {
throw new BusinessException('预支付记录不存在');
}
// if ($log->created_at->timestamp < time() - 5*60) {
// throw new BusinessException('支付超时,请重新请求');
// }
if ($log->created_at->timestamp < time() - 5*60) {
throw new BusinessException('支付超时,请重新请求');
}
$app = App::where('app_id', $log->app_id)->first();
if (empty($app)) {
throw new BusinessException('应用异常');

@ -96,6 +96,7 @@ class PaymentService extends AbstractService
$user = User::where('app_id', $app->app_id)->where('out_member_id', $data['outMemberId'])->first();
if (!$user) {
Log::error('UserUndefiend: ', $data);
throw new BusinessException('用户不存在');
}
$order = $this->createOrder($app, $data, $user);

Loading…
Cancel
Save