aliyun短信服务,php采用示例代码报Can not find endpoint to access

aliyun短信服务,php采用示例代码报Can not find endpoint to access


  $endpoint = new Endpoint(

$this->options['region_id'], 

EndpointConfig::getregionIds(), 

EndpointConfig::getProducDomains()

);

  $endpoints = array($endpoint);
  EndpointProvider::setEndpoints($endpoints);


如图,添加该代码即可解决问题。