|
@@ -116,7 +116,7 @@ class RegimentActive extends Auth{
|
|
|
// 提示
|
|
|
if ($product_res) return json_send(['code'=>'error','msg'=>'该产品正在参加拼团活动']);
|
|
|
// 核对产品
|
|
|
- $product_res = $Model::query()->where([['business_id','=', $data['business_id']],['product_id','=', $data['product_id']]])->first();
|
|
|
+ $product_res = $Product::query()->where([['business_id','=', $data['business_id']],['product_id','=', $data['product_id']]])->first();
|
|
|
if (!$product_res) return json_send(['code'=>'error','msg'=>'该店铺产品不存在']);
|
|
|
//核对产品价格
|
|
|
$productInfo = $Product->getOne($data['product_id']);
|