$this->username, 'password' => $this->password, 'sender' => $this->sender, 'destination' => $mobile, 'body' => $content, ]; try { $response = $client->post($this->apiUrl, $params)->send(); if ($response->getStatusCode() == 200) { return true; } else { return false; } } catch (\Exception $e) { // 处理异常 return false; } } }