Esempio n. 1
0
 function __construct($content)
 {
     parent::__construct();
     $content['data'] = array_change_key_case($content['data'], CASE_LOWER);
     //数组键名全小写,以满足推送 api 的要求
     $temp = array('touser' => '', 'msgtype' => $content['type'], $content['type'] => $content['data']);
     $this->_content = $temp;
     $this->_api = sprintf($this->_api, $this->accessToken);
 }
Esempio n. 2
0
 function __construct($resource)
 {
     parent::__construct($resource);
 }