| @@ 127-140 (lines=14) @@ | ||
| 124 | * @return bool. |
|
| 125 | */ |
|
| 126 | ||
| 127 | public function moveUser($openid, $to_groupid) |
|
| 128 | { |
|
| 129 | if (!is_numeric($to_groupid) || !is_string($openid)) { |
|
| 130 | $this->setError('参数错误,用户ID格式不正确或组ID不是数字'); |
|
| 131 | ||
| 132 | return false; |
|
| 133 | } |
|
| 134 | ||
| 135 | $queryStr = ['openid' => $openid, 'to_groupid' => $to_groupid]; |
|
| 136 | ||
| 137 | $res = $this->_post('members/update', $queryStr); |
|
| 138 | ||
| 139 | return $res; |
|
| 140 | } |
|
| 141 | ||
| 142 | /** |
|
| 143 | * 批量移动用户到指定分组 |
|
| @@ 19-35 (lines=17) @@ | ||
| 16 | * |
|
| 17 | * @return bool|array |
|
| 18 | */ |
|
| 19 | public function apiSetIndustry($industry_id1, $industry_id2) |
|
| 20 | { |
|
| 21 | if (!is_numeric($industry_id1) || !is_numeric($industry_id2)) { |
|
| 22 | $this->setError('参数错误'); |
|
| 23 | ||
| 24 | return false; |
|
| 25 | } |
|
| 26 | ||
| 27 | $queryStr = [ |
|
| 28 | 'industry_id1' => $industry_id1, |
|
| 29 | 'industry_id2' => $industry_id2, |
|
| 30 | ]; |
|
| 31 | ||
| 32 | $res = $this->_post('api_set_industry', $queryStr); |
|
| 33 | ||
| 34 | return $res; |
|
| 35 | } |
|
| 36 | ||
| 37 | /** |
|
| 38 | * 获得模板ID |
|