|
|
@@ -353,6 +353,14 @@ class StatSaleClass extends BaseClass
|
|
|
$currentStartTime = $currentStartDate . ' 00:00:00';
|
|
|
$currentEndTime = $currentEndDate . ' 23:59:59';
|
|
|
|
|
|
+ $s = strtotime($currentStartTime);
|
|
|
+ $e = strtotime($currentEndTime);
|
|
|
+ $p = bcsub($e, $s);
|
|
|
+ $xx = bcmul(86400, 40);
|
|
|
+ if ($p > $xx) {
|
|
|
+ util::fail('查询时间不能超过一个月');
|
|
|
+ }
|
|
|
+
|
|
|
$classList = ItemClassClass::getAllByCondition(['mainId' => $mainId], null, 'id,name', 'id');
|
|
|
if (empty($classList)) {
|
|
|
util::fail('没有找到花材');
|