|
@@ -3,8 +3,8 @@
|
|
|
namespace app\common\model;
|
|
|
|
|
|
use app\admin\model\Admin;
|
|
|
+use think\db\Query;
|
|
|
use think\Model;
|
|
|
-use Yansongda\Supports\Str;
|
|
|
|
|
|
/**
|
|
|
* 配置模型
|
|
@@ -12,7 +12,7 @@ use Yansongda\Supports\Str;
|
|
|
class MobileOrder extends Model
|
|
|
{
|
|
|
|
|
|
-
|
|
|
+ const STATUS_WAIT_SEND=10;
|
|
|
public static $status=[
|
|
|
0=>'待付款',
|
|
|
10=>'待发货',
|
|
@@ -42,4 +42,8 @@ class MobileOrder extends Model
|
|
|
$mobileOrder['expire_time']=time()+86400;
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ public function scopeExpired(Query $query){
|
|
|
+ $query->where('status');
|
|
|
+ }
|
|
|
}
|