|
|
@@ -292,6 +292,7 @@ class OrderService extends BaseService
|
|
|
$buyLimit = $buyLimit>0?$buyLimit:0;
|
|
|
if($buyLimit>0){
|
|
|
$checkOrderCount = $this->checkBusinessOrder($userId, $mealType);
|
|
|
+ var_dump($checkOrderCount);
|
|
|
if ($checkOrderCount >= $buyLimit) {
|
|
|
RedisService::clear($cacheLockKey);
|
|
|
$this->error = $buyLimit>1?"抱歉该创业礼包仅限购买{$buyLimit}次":'抱歉,您已经购买过该礼包';
|
|
|
@@ -843,6 +844,7 @@ class OrderService extends BaseService
|
|
|
->where('status', '<=', 5)
|
|
|
->where('refund_status', '<=', 0)
|
|
|
->count('id');
|
|
|
+ var_dump($data);
|
|
|
if ($data) {
|
|
|
RedisService::set($cacheKey, $data, rand(5, 10));
|
|
|
}
|