Skip to content

Commit

Permalink
企业微信获取注册码,需要推广包的模板ID才行。 (#2503)
Browse files Browse the repository at this point in the history
  • Loading branch information
jatyPeng authored Jun 16, 2022
1 parent ffee8d4 commit 1fceb4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/OpenWork/Provider/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,16 @@ public function getRegisterCode(
string $corpName = '',
string $adminName = '',
string $adminMobile = '',
string $state = ''
string $state = '',
string $templateId = ''
) {
$params = [];
$params['template_id'] = $this->app['config']['reg_template_id'];
!empty($corpName) && $params['corp_name'] = $corpName;
!empty($adminName) && $params['admin_name'] = $adminName;
!empty($adminMobile) && $params['admin_mobile'] = $adminMobile;
!empty($state) && $params['state'] = $state;
!empty($templateId) && $params['template_id'] = $templateId;

return $this->httpPostJson('cgi-bin/service/get_register_code', $params);
}
Expand Down

0 comments on commit 1fceb4f

Please sign in to comment.