更新推送
This commit is contained in:
parent
3d18c9187d
commit
7ce3cb3cbe
@ -18,7 +18,7 @@ class JgPush
|
|||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->client = new Client('b5f679f4357018605ea6fd2e', 'c4fb573758f8d7058d697c54');
|
$this->client = new Client('8a5efd65cda14fafa6e64ad3', 'daebe19b547c43128796a078');
|
||||||
$this->push = $this->client->push();
|
$this->push = $this->client->push();
|
||||||
$this->setPlatform();
|
$this->setPlatform();
|
||||||
}
|
}
|
||||||
@ -30,9 +30,9 @@ class JgPush
|
|||||||
$groupOrder = app()->make(StoreGroupOrderRepository::class)->get($data['id']);
|
$groupOrder = app()->make(StoreGroupOrderRepository::class)->get($data['id']);
|
||||||
if ($groupOrder) {
|
if ($groupOrder) {
|
||||||
foreach ($groupOrder->orderList as $order) {
|
foreach ($groupOrder->orderList as $order) {
|
||||||
$this->client = new Client('b5f679f4357018605ea6fd2e', 'c4fb573758f8d7058d697c54');
|
$this->client = new Client('8a5efd65cda14fafa6e64ad3', 'daebe19b547c43128796a078');
|
||||||
$this->push = $this->client->push();
|
$this->push = $this->client->push();
|
||||||
$this->setPlatform();
|
$this->setPlatform(['ios', 'android']);
|
||||||
$route = "/pages/admin/orderDetail/index?id={$order['order_id']}&mer_id={$order['mer_id']}";
|
$route = "/pages/admin/orderDetail/index?id={$order['order_id']}&mer_id={$order['mer_id']}";
|
||||||
$merUserId = Merchant::where('mer_id', $order->mer_id)->value('uid');
|
$merUserId = Merchant::where('mer_id', $order->mer_id)->value('uid');
|
||||||
$jgRegisterId = User::where('uid', $merUserId)->value('jg_register_id');
|
$jgRegisterId = User::where('uid', $merUserId)->value('jg_register_id');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user