@@ 238-242 (lines=5) @@ | ||
235 | */ |
|
236 | public function landingpage($banner, $page_title, $can_share = false, $scene = 'SCENE_CARD_CUSTOM_CELL', $card_list = []) |
|
237 | { |
|
238 | if (empty($banner) || empty($page_title) || !is_bool($can_share) || !is_string($scene) || !is_array($card_list)) { |
|
239 | $this->setError('参数错误'); |
|
240 | ||
241 | return false; |
|
242 | } |
|
243 | ||
244 | $queryStr = []; |
|
245 | $queryStr['banner'] = $banner; |
@@ 74-78 (lines=5) @@ | ||
71 | */ |
|
72 | public function send($touser, $template_id, $url, $data = []) |
|
73 | { |
|
74 | if (!is_string($touser) || !is_string($template_id) || !is_array($data) || empty($data)) { |
|
75 | $this->setError('参数错误'); |
|
76 | ||
77 | return false; |
|
78 | } |
|
79 | ||
80 | $queryStr = [ |
|
81 | 'touser' => $touser, |