* Assign default value to optional parameter '$storyType' of the getStats function.

This commit is contained in:
chentao
2023-05-19 17:41:55 +08:00
parent 77a83a1e16
commit 7a9b299afb
+1 -1
View File
@@ -1308,7 +1308,7 @@ class productModel extends model
* @access public
* @return array
*/
public function getStats(array $productIdList, string $orderBy = 'order_asc', object|null $pager = null, string $storyType, int $programID = 0): array
public function getStats(array $productIdList, string $orderBy = 'order_asc', object|null $pager = null, string $storyType = 'story', int $programID = 0): array
{
if(empty($productIdList)) return array();