소스 검색

一天多单

shish 1 년 전
부모
커밋
acc2b80422
1개의 변경된 파일6개의 추가작업 그리고 8개의 파일을 삭제
  1. 6 8
      console/controllers/LiveOrderController.php

+ 6 - 8
console/controllers/LiveOrderController.php

@@ -154,16 +154,14 @@ class LiveOrderController extends Controller
 
                     $post['historyDate'] = $historyDate;
 
+                    $order = OrderService::createFinishOrder($post, $custom, $hasPay);
 
                     //清掉一天多单的汇总
-//                    $sameDate = date("Y_m_d");
-//                    $sameAddress = $order->showAddress ?? '';
-//                    $addressMd5 = md5($sameAddress);
-//                    $sameKey = $customId . '_' . $addressMd5 . '_' . $sameDate;
-//                    $sameString = Yii::$app->redis->executeCommand('GET', [$sameKey]);
-
-
-                    OrderService::createFinishOrder($post, $custom, $hasPay);
+                    $sameDate = date("Y_m_d");
+                    $sameAddress = $order->showAddress ?? '';
+                    $addressMd5 = md5($sameAddress);
+                    $sameKey = $customId . '_' . $addressMd5 . '_' . $sameDate;
+                    Yii::$app->redis->executeCommand('DET', [$sameKey]);
 
                 }