moonsflyer 3 mēneši atpakaļ
vecāks
revīzija
9383f8efa9
1 mainītis faili ar 21 papildinājumiem un 21 dzēšanām
  1. 21 21
      app/common/logic/PayNotifyLogic.php

+ 21 - 21
app/common/logic/PayNotifyLogic.php

@@ -189,25 +189,25 @@ class PayNotifyLogic extends BaseLogic
             TeamLogic::checkTeamSuccess($order['team_found_id']);
         }
 
-//        // 消息通知 - 通知买家
-//        event('Notice', [
-//            'scene_id' =>  NoticeEnum::ORDER_PAY_NOTICE,
-//            'params' => [
-//                'user_id' => $order['user_id'],
-//                'order_id' => $order['id'],
-//                'mobile'    => $order['address']->mobile,
-//            ]
-//        ]);
-//
-//        // 消息通知 - 通知卖家
-//        $mobile = ConfigService::get('shop', 'mall_contact_mobile', '');
-//        event('Notice', [
-//            'scene_id' =>  NoticeEnum::SELLER_ORDER_PAY_NOTICE,
-//            'params' => [
-//                'mobile' => $mobile,
-//                'order_id' => $order['id'],
-//            ]
-//        ]);
+        // 消息通知 - 通知买家
+        event('Notice', [
+            'scene_id' =>  NoticeEnum::ORDER_PAY_NOTICE,
+            'params' => [
+                'user_id' => $order['user_id'],
+                'order_id' => $order['id'],
+                'mobile'    => $order['address']->mobile,
+            ]
+        ]);
+
+        // 消息通知 - 通知卖家
+        $mobile = ConfigService::get('shop', 'mall_contact_mobile', '');
+        event('Notice', [
+            'scene_id' =>  NoticeEnum::SELLER_ORDER_PAY_NOTICE,
+            'params' => [
+                'mobile' => $mobile,
+                'order_id' => $order['id'],
+            ]
+        ]);
 //        //更新虚拟订单
         try{
             outFileLog(1,'prepay','$ret1');
@@ -219,8 +219,8 @@ class PayNotifyLogic extends BaseLogic
         //更新用户等级
         UserLogic::updateLevel($order['user_id']);
 //
-//        // 自动小票打印
-//        self::orderPrint($order['id']);
+        // 自动小票打印
+        self::orderPrint($order['id']);
         outFileLog(3,'prepay','$ret3');
     }