Commit 127e686e by 王召彬

添加默认值

parent 44c97685
...@@ -20,7 +20,7 @@ class WxMiniNotice ...@@ -20,7 +20,7 @@ class WxMiniNotice
* @param array $param * @param array $param
* @return string * @return string
*/ */
public static function generatePage(string $page, array $param) public static function generatePage(string $page, array $param = [])
{ {
$param['origin'] = $param['origin']??'notice'; $param['origin'] = $param['origin']??'notice';
$param['isShare'] = 1; $param['isShare'] = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment