Commit 16acc97f by feixiang

微信小程序page生成 使用说明

parent 86a217a4
...@@ -12,12 +12,18 @@ class WxMiniNotice ...@@ -12,12 +12,18 @@ class WxMiniNotice
/** /**
* 微信小程序page生成 * 微信小程序page生成
* *
* 用法:
* WxMiniNotice::generatePage("pages/orderShow/orderShow",['orderId' => $orderInfo['id'], 'storeId' => $orderInfo['storeId']])
* 生成
* pages/orderShow/orderShow?orderId=1&storeId=7
* @param string $page * @param string $page
* @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 = http_build_query($param); $param = http_build_query($param);
return $page.$param; return $page.$param;
......
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