songxingwei 3 years ago
parent
commit
b834e859ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/common/model/User.php

+ 1 - 1
application/common/model/User.php

@@ -904,7 +904,7 @@ class User Extends Model
             return Common::return_error('暂时无法使用微信支付');
         }
 
-        $orde = Order::where('user_id',$user_id)->where('overtime_pay_status',1)->find();
+        $orde = Order::where('user_id',$user_id)->where('is_del',1)->where('overtime_pay_status',1)->find();
         if ($orde) return Common::return_error('有未支付的加班费订单,无法下单');
         $designer = self::where('id',$designer_id)
             ->where('type',2)