diff --git a/app/common/service/JgPush.php b/app/common/service/JgPush.php index e4628623..a7311e9d 100644 --- a/app/common/service/JgPush.php +++ b/app/common/service/JgPush.php @@ -81,17 +81,19 @@ class JgPush $merUserId = Merchant::where('mer_id', $order['mer_id'])->value('uid'); $jgRegisterId = User::where('uid', $merUserId)->value('jg_register_id'); if (empty($jgRegisterId)) { + Log::info("ORDER_CREATE 1"); break; } + Log::info("ORDER_CREATE ============= 您有新的订单111,请注意查看。"); $this->addRegistrationId($jgRegisterId); $this->androidNotification('您有新的订单,请注意查看111。', ['extras' => ['route' => $route, 'type' =>'ORDER_CREATE']]); $this->iosNotification('您有新的订单,请注意查看111。', ['extras' => ['route' => $route, 'type' =>'ORDER_CREATE']]); $this->push->send(); - Log::info("ORDER_CREATE ============= 您有新的订单111,请注意查看。"); break; case 'ORDER_PAY_SUCCESS': $order = app()->make(StoreOrderRepository::class)->get($data['id']); if ($order->pay_type != StoreGroupOrder::PAY_TYPE_CREDIT_BUY) { + Log::info("ORDER_CREATE 2"); break; } $route = "/pages/admin/orderDetail/index?id={$order['order_id']}&mer_id={$order['mer_id']}"; @@ -100,11 +102,11 @@ class JgPush if (empty($jgRegisterId)) { break; } + Log::info("ORDER_PAY_SUCCESS ============= 您有新的订单222,请注意查看。"); $this->addRegistrationId($jgRegisterId); $this->androidNotification('您有新的订单,请注意查看222。', ['extras' => ['route' => $route, 'type' =>'ORDER_PAY_SUCCESS']]); $this->iosNotification('您有新的订单,请注意查看222。', ['extras' => ['route' => $route, 'type' =>'ORDER_PAY_SUCCESS']]); $this->push->send(); - Log::info("ORDER_PAY_SUCCESS ============= 您有新的订单222,请注意查看。"); break; default: break;