调试极光消息推送
This commit is contained in:
parent
52ef67b76b
commit
a54e837d74
@ -24,7 +24,7 @@ class JgPush
|
||||
{
|
||||
switch ($type) {
|
||||
case 'ADMIN_PAY_SUCCESS_CODE':
|
||||
$groupOrder = app()->make(StoreGroupOrderRepository::class)->get($data['group_order_id']);
|
||||
$groupOrder = app()->make(StoreGroupOrderRepository::class)->get($data['id']);
|
||||
if ($groupOrder) {
|
||||
foreach ($groupOrder->orderList as $order) {
|
||||
$route = "/pages/admin/orderDetail/index?id={$order['order_id']}&mer_id={$order['mer_id']}";
|
||||
@ -41,7 +41,7 @@ class JgPush
|
||||
break;
|
||||
case 'DELIVER_GOODS_CODE':
|
||||
case 'ORDER_DELIVER_SUCCESS':
|
||||
$order = app()->make(StoreOrderRepository::class)->get($data['order_id']);
|
||||
$order = app()->make(StoreOrderRepository::class)->get($data['id']);
|
||||
if ($order) {
|
||||
$route = "/pages/order_details/index?order_id={$order['order_id']}";
|
||||
$jgRegisterId = User::where('uid', $order['uid'])->value('jg_register_id');
|
||||
|
@ -123,7 +123,7 @@ class paySuccessOrder
|
||||
];
|
||||
}
|
||||
|
||||
if (!$financialRecordRepository->insertAll($this->finance)) {
|
||||
if ($financialRecordRepository->insertAll($this->finance) === false) {
|
||||
throw new \Exception('财务流水保存出错');
|
||||
}
|
||||
Db::commit();
|
||||
|
Loading…
x
Reference in New Issue
Block a user