diff --git a/app/controller/PayController.php b/app/controller/PayController.php index e53ee98..40e31c8 100644 --- a/app/controller/PayController.php +++ b/app/controller/PayController.php @@ -155,6 +155,7 @@ class PayController return \json(\backMsg(1, '更新失败')); } } + // 处理收款通知 public function payHeart(Request $request) { $pid = $request->get('pid'); @@ -182,7 +183,7 @@ class PayController foreach ($payList as $order) { if (!in_array($order['order_no'], $doneOrders)) $new_orders[] = $order; } - if (!count($new_orders)) return json(['code' => 0, 'msg' => '查询无新订单']); + if (!count($new_orders)) return json(['code' => 0, 'msg' => '收款通知无新消息']); // 有效订单列表 $activeOrders = Order::scope('activeOrder')->where($query)->select(); if (!count($activeOrders)) return json(['code' => 0, 'msg' => '数据库无有效期订单']); diff --git a/extend/payclient/ShouQianBa.php b/extend/payclient/ShouQianBa.php index 2a6ded5..10f4141 100644 --- a/extend/payclient/ShouQianBa.php +++ b/extend/payclient/ShouQianBa.php @@ -95,8 +95,8 @@ class ShouQianBa { $new_query = $query; $now = $this->now; - $begin_time = (int)(($now - 175) . 000); - $end_time = (int)($now . 999); + $begin_time = (int)(($now - 175) . '000'); + $end_time = (int)($now . '999'); $new_query['date_start'] = $begin_time; $new_query['date_end'] = $end_time; return $new_query;