|
|
@@ -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]);
|
|
|
|
|
|
}
|
|
|
|