调整首页接口和返回数据
This commit is contained in:
@@ -135,4 +135,17 @@ trait OrderScopes
|
||||
return $query->where('type', Order::TYPE_SAMPLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Notes: 正常购买
|
||||
*
|
||||
* @Author: 玄尘
|
||||
* @Date: 2023/1/18 16:11
|
||||
* @param Builder $query
|
||||
* @return Builder
|
||||
*/
|
||||
public function scopeTypeNormal(Builder $query): Builder
|
||||
{
|
||||
return $query->where('type', Order::TYPE_NORMAL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user