|
|
@@ -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;
|