Ver código fonte

fix: 启动挖矿订单检查有问题

joe 4 anos atrás
pai
commit
75b0b2abd4
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      app/models/store/StoreOrderCartInfo.php

+ 4 - 0
app/models/store/StoreOrderCartInfo.php

@@ -49,6 +49,10 @@ class StoreOrderCartInfo extends BaseModel
     public static function getMiningOrderId($uid) {
         $row = self::where('so.uid', $uid)
             ->where('so.paid', 1)
+            ->where('so.status', '>=', 0)
+            ->where('so.refund_status', 0)
+            ->where('so.is_del', 0)
+            ->where('so.is_system_del', 0)
             ->where('ci.mine', 0)
             ->alias('ci')->join('store_order so', 'ci.oid=so.id')->field('ci.oid')->limit(1)->value('oid');
         return $row;