From 4e0ae4579b6f53ecb1c64153ddd1f5bef52b12e3 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Mon, 9 Oct 2023 17:52:04 +0800 Subject: [PATCH] limit --- home/controllers/h5/market/sylive2/Item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/controllers/h5/market/sylive2/Item.php b/home/controllers/h5/market/sylive2/Item.php index f966d4c3..3719b1b3 100644 --- a/home/controllers/h5/market/sylive2/Item.php +++ b/home/controllers/h5/market/sylive2/Item.php @@ -316,8 +316,8 @@ class Item extends Wx{ } } - if($this->market_sylive_order_model->count(['itemId'=>$item_id, 'status'=>1])){ - //$this->show_json('',400,"每位客户仅限购买1次"); + if($this->market_sylive_order_model->count(['itemId'=>$item_id, 'mobile'=>$mobile, 'status'=>1])){ + $this->show_json('',400,"每位客户仅限购买1次"); } $redis = &load_cache('redis');