|
@@ -14,9 +14,11 @@ use crmeb\basic\BaseModel;
|
|
|
use crmeb\services\GroupDataService;
|
|
|
use crmeb\services\workerman\ChannelService;
|
|
|
use crmeb\traits\ModelTrait;
|
|
|
+use PDOStatement;
|
|
|
use app\models\store\{
|
|
|
StoreBargain, StoreCombination, StoreSeckill
|
|
|
};
|
|
|
+use think\Collection;
|
|
|
|
|
|
/**
|
|
|
* TODO 产品Model
|
|
@@ -172,7 +174,7 @@ class StoreProduct extends BaseModel
|
|
|
* 新品产品
|
|
|
* @param string $field
|
|
|
* @param int $limit
|
|
|
- * @return false|\PDOStatement|string|\think\Collection
|
|
|
+ * @return false|PDOStatement|string|Collection
|
|
|
*/
|
|
|
public static function getNewProduct($field = '*', $limit = 0, $uid = 0, bool $bool = true)
|
|
|
{
|
|
@@ -195,7 +197,7 @@ class StoreProduct extends BaseModel
|
|
|
* 热卖产品
|
|
|
* @param string $field
|
|
|
* @param int $limit
|
|
|
- * @return false|\PDOStatement|string|\think\Collection
|
|
|
+ * @return false|PDOStatement|string|Collection
|
|
|
*/
|
|
|
public static function getHotProduct($field = '*', $limit = 0, $uid = 0)
|
|
|
{
|
|
@@ -218,7 +220,7 @@ class StoreProduct extends BaseModel
|
|
|
* @param string $field
|
|
|
* @param int $page
|
|
|
* @param int $limit
|
|
|
- * @return array|\think\Collection
|
|
|
+ * @return array|Collection
|
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
* @throws \think\exception\DbException
|
|
@@ -239,7 +241,12 @@ class StoreProduct extends BaseModel
|
|
|
* 精品产品
|
|
|
* @param string $field
|
|
|
* @param int $limit
|
|
|
- * @return false|\PDOStatement|string|\think\Collection
|
|
|
+ * @param int $uid
|
|
|
+ * @param bool $bool
|
|
|
+ * @return false|PDOStatement|string|Collection|array
|
|
|
+ * @throws \think\db\exception\DataNotFoundException
|
|
|
+ * @throws \think\db\exception\DbException
|
|
|
+ * @throws \think\db\exception\ModelNotFoundException
|
|
|
*/
|
|
|
public static function getBestProduct($field = '*', $limit = 0, $uid = 0, bool $bool = true)
|
|
|
{
|
|
@@ -302,7 +309,7 @@ class StoreProduct extends BaseModel
|
|
|
* 优惠产品
|
|
|
* @param string $field
|
|
|
* @param int $limit
|
|
|
- * @return false|\PDOStatement|string|\think\Collection
|
|
|
+ * @return false|PDOStatement|string|Collection
|
|
|
*/
|
|
|
public static function getBenefitProduct($field = '*', $limit = 0)
|
|
|
{
|