save($data); } /** * 根据商品id获取进行中的拼单列表 * @param $goods_id * @param int $limit * @return false|\PDOStatement|string|\think\Collection */ public static function getActivityListByGoods($goods_id, $limit = 15) { return (new static)->with(['user']) ->where('goods_id', '=', $goods_id) ->where('status', '=', 10) ->limit($limit) ->select(); } }