@@ -48,7 +48,7 @@ |
||
| 48 | 48 | * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException |
| 49 | 49 | * @throws \GuzzleHttp\Exception\GuzzleException |
| 50 | 50 | */ |
| 51 | - public function unbind(string $wechatId,string $userStr='') |
|
| 51 | + public function unbind(string $wechatId, string $userStr = '') |
|
| 52 | 52 | { |
| 53 | 53 | if ($userStr) |
| 54 | 54 | return $this->httpPostJson('wxa/unbind_tester', [ |
@@ -50,14 +50,15 @@ |
||
| 50 | 50 | */ |
| 51 | 51 | public function unbind(string $wechatId,string $userStr='') |
| 52 | 52 | { |
| 53 | - if ($userStr) |
|
| 54 | - return $this->httpPostJson('wxa/unbind_tester', [ |
|
| 53 | + if ($userStr) { |
|
| 54 | + return $this->httpPostJson('wxa/unbind_tester', [ |
|
| 55 | 55 | 'userstr' => $userStr, |
| 56 | 56 | ]); |
| 57 | - else |
|
| 58 | - return $this->httpPostJson('wxa/unbind_tester', [ |
|
| 57 | + } else { |
|
| 58 | + return $this->httpPostJson('wxa/unbind_tester', [ |
|
| 59 | 59 | 'wechatid' => $wechatId, |
| 60 | 60 | ]); |
| 61 | + } |
|
| 61 | 62 | } |
| 62 | 63 | |
| 63 | 64 | /** |