shish пре 3 година
родитељ
комит
e9c7f3aa15
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app-hd/controllers/PurchaseController.php

+ 1 - 1
app-hd/controllers/PurchaseController.php

@@ -131,7 +131,7 @@ class PurchaseController extends BaseController
                         if (strtotime($sendTimeWant) < $nowTime) {
                             util::fail('不能选择过去时间');
                         }
-                        $hasDate = $currentInfo['presellDateList'] ?? '';
+                        $hasDate = $currentInfo['presellDateList'] ?? [];
                         if (empty($hasDate)) {
                             util::fail('预售日期有问题,请提醒门店');
                         }