|
|
|
@ -326,9 +326,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('应用异常');
|
|
|
|
|