Browse Source

您已经下过该医生的图文订单了

Mike 4 years ago
parent
commit
94d83f8fdb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Api/V1/OrderController.php

+ 1 - 1
app/Http/Controllers/Api/V1/OrderController.php

xqd
@@ -71,7 +71,7 @@ class OrderController extends AuthController
         }
 
         //图文咨询订单未结束时不能针对同一医生再次下图文订单
-        if ($req['product_type'] == 2 && Order::where('docter_id', $req['docter_id'])->where('user_id', $user['id'])->whereIn('order_status', [2,3])->exists()) {
+        if ($req['product_type'] == 2 && Order::where('docter_id', $req['docter_id'])->where('product_type', 2)->where('user_id', $user['id'])->whereIn('order_status', [2,3])->exists()) {
             return out(null, 10012, '您已经下过该医生的图文订单了,并且订单还未完成');
         }